class Column
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.CloudWatch.Column |
![]() | software.amazon.awscdk.services.cloudwatch.Column |
![]() | aws_cdk.aws_cloudwatch.Column |
![]() | @aws-cdk/aws-cloudwatch » Column |
Implements
IWidget
A widget that contains other widgets in a vertical column.
Widgets will be laid out next to each other
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as cloudwatch from '@aws-cdk/aws-cloudwatch';
declare const widget: cloudwatch.IWidget;
const column = new cloudwatch.Column(widget);
Initializer
new Column(...widgets: IWidget[])
Parameters
- widgets
IWidget
Properties
Name | Type | Description |
---|---|---|
height | number | The amount of vertical grid units the widget will take up. |
widgets | IWidget [] | List of contained widgets. |
width | number | The amount of horizontal grid units the widget will take up. |
height
Type:
number
The amount of vertical grid units the widget will take up.
widgets
Type:
IWidget
[]
List of contained widgets.
width
Type:
number
The amount of horizontal grid units the widget will take up.
Methods
Name | Description |
---|---|
position(x, y) | Place the widget at a given position. |
to | Return the widget JSON for use in the dashboard. |
position(x, y)
public position(x: number, y: number): void
Parameters
- x
number
- y
number
Place the widget at a given position.
Json()
topublic toJson(): any[]
Returns
any[]
Return the widget JSON for use in the dashboard.