Interface TextWidgetProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
TextWidgetProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.120.0 (build 192dc88)",
date="2025-12-05T22:26:32.532Z")
@Stability(Stable)
public interface TextWidgetProps
extends software.amazon.jsii.JsiiSerializable
Properties for a Text widget.
Example:
Dashboard dashboard;
dashboard.addWidgets(TextWidget.Builder.create()
.markdown("# Key Performance Indicators")
.build());
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forTextWidgetPropsstatic final classAn implementation forTextWidgetProps -
Method Summary
Modifier and TypeMethodDescriptionstatic TextWidgetProps.Builderbuilder()default TextWidgetBackgroundBackground for the widget.default NumberHeight of the widget.The text to display, in MarkDown format.default NumbergetWidth()Width of the widget, in a grid of 24 units wide.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getMarkdown
The text to display, in MarkDown format. -
getBackground
Background for the widget.Default: solid
-
getHeight
Height of the widget.Default: 2
-
getWidth
Width of the widget, in a grid of 24 units wide.Default: 6
-
builder
- Returns:
- a
TextWidgetProps.BuilderofTextWidgetProps
-