# TableSummaryProps

Properties for TableWidget's summary columns.

- Source: [`aws-cloudwatch/lib/graph.ts`](https://github.com/aws/aws-cdk/blob/v2.274.0/packages/aws-cdk-lib/aws-cloudwatch/lib/graph.ts#L591)
- Type last changed: v2.128.0 · 14 Feb 2024

## Example

```ts
declare const dashboard: cloudwatch.Dashboard;

dashboard.addWidgets(new cloudwatch.TableWidget({
  // ...

  summary: {
    columns: [cloudwatch.TableSummaryColumn.AVERAGE],
    hideNonSummaryColumns: true,
    sticky: true,
  },
}));
```

## Properties

- `columns`: [TableSummaryColumn](/cdk/api/v2/docs/aws-cdk-lib.aws_cloudwatch.TableSummaryColumn.html)[] — Summary columns.

  **Default:** No summary columns will be shown

- `hideNonSummaryColumns`: boolean = false — Prevent the columns of datapoints from being displayed, so that only the label and summary columns are displayed.

- `sticky`: boolean = false — Make the summary columns sticky, so that they remain in view while scrolling.
