Interface TextWidgetProps

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
TextWidgetProps.Jsii$Proxy

@Generated(value="jsii-pacmak/1.98.0 (build 00b106d)", date="2024-06-07T19:09:17.032Z") @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());
 
  • Method Details

    • getMarkdown

      @Stability(Stable) @NotNull String getMarkdown()
      The text to display, in MarkDown format.
    • getBackground

      @Stability(Stable) @Nullable default TextWidgetBackground getBackground()
      Background for the widget.

      Default: solid

    • getHeight

      @Stability(Stable) @Nullable default Number getHeight()
      Height of the widget.

      Default: 2

    • getWidth

      @Stability(Stable) @Nullable default Number getWidth()
      Width of the widget, in a grid of 24 units wide.

      Default: 6

    • builder

      @Stability(Stable) static TextWidgetProps.Builder builder()
      Returns:
      a TextWidgetProps.Builder of TextWidgetProps