zero.appdocs

Text

Presentations v1.0 zero-schema

No description provided.

Required fields

PresentationType Text

Properties

PresentationType string required
Text is used to display styled text with various alignment and overflow handling options.
Text string required
The actual text content to be displayed.
FontSize number optional
The size of the plugin in pixels
Default 16
FontFamily string optional
The font family used for the plugin.
Default "DefaultUI"
FontWeight string optional
The weight of the font used for the plugin.
Default "w400"
Height number optional
The height of the font used for the plugin.
BackgroundColor string optional
The BackgroundColor of the plugin
Color string optional
The BackgroundColor of the plugin
LetterSpacing number optional
The spacing between letters in the text.
TextAlign string optional
The alignment of the text.
Default "Left"
Allowed Left Center Right Justify
TextOverflow string optional
The strategy for handling text overflow.
Allowed Clip Ellipsis Fade
TextDecoration string optional
The decoration applied to the text.
Allowed None Underline Overline LineThrough
Icon string optional
An optional icon to display alongside the text.
Align string optional
The alignment of the text within its container.
Allowed Left Center Right Justify
ShowCursor boolean optional
Whether to show a cursor for text editing
CursorColor string optional
The color of a cursor as color name or hex value
CursorWidth number optional
The width of a cursor in pixels
Default 0
Selectable boolean optional
It state whether the text can be selected by the user.
Default false
Focus boolean optional
State whether the text should be focused or not
Default false
IsLink boolean optional
Treats text as a link with underline on hoover
Default false
ShowSpinner boolean optional
It shows the loading spinner next to the text
Default false
SoftWrap boolean optional
It wraps the text should wrap to the next line if it's too long.
Default false
MaxLines integer optional
The maximum number of lines to display for wrapped text.

Studio editor metadata

Shapes the studio editor; not enforced at runtime.

PresentationType
"Text"
BackgroundColor
{
  "OnChange": {
    "To": "{{ Id }}",
    "Handler": "Whisper"
  },
  "InitialValue": "{{ Value }}",
  "DisplayText": "BackgroundColor",
  "PresentationType": "ColorPicker"
}
Color
{
  "OnChange": {
    "To": "{{ Id }}",
    "Handler": "Whisper"
  },
  "InitialValue": "{{ Value }}",
  "DisplayText": "Color",
  "PresentationType": "ColorPicker"
}
TextAlign
"Select"
TextOverflow
"Select"
TextDecoration
"Select"
Align
"Select"
CursorColor
{
  "OnChange": {
    "To": "{{ Id }}",
    "Handler": "Whisper"
  },
  "InitialValue": "{{ Value }}",
  "DisplayText": "CursorColor",
  "PresentationType": "ColorPicker"
}