1 | import { ConcreteWidget } from './widget';
|
2 | /**
|
3 | * Properties for a Text widget
|
4 | */
|
5 | export interface TextWidgetProps {
|
6 | /**
|
7 | * The text to display, in MarkDown format
|
8 | */
|
9 | readonly markdown: string;
|
10 | /**
|
11 | * Width of the widget, in a grid of 24 units wide
|
12 | *
|
13 | * @default 6
|
14 | */
|
15 | readonly width?: number;
|
16 | /**
|
17 | * Height of the widget
|
18 | *
|
19 | * @default 2
|
20 | */
|
21 | readonly height?: number;
|
22 | }
|
23 | /**
|
24 | * A dashboard widget that displays MarkDown
|
25 | */
|
26 | export declare class TextWidget extends ConcreteWidget {
|
27 | private readonly markdown;
|
28 | constructor(props: TextWidgetProps);
|
29 | position(x: number, y: number): void;
|
30 | toJson(): any[];
|
31 | }
|