
RichText is used to view and edit text styled with different fonts and colors.
Slots
- border
-
const Bool border := true
Draw a border around the text area. Default is true. This field cannot be changed once the widget is constructed.
- font
-
Font font := null
Default font for text absense explicit styling. Defaults to null (system default).
-
static internal Str fontId := "font"
- hscroll
-
const Bool hscroll := true
True use a horizontal scrollbar for multiLine text widget. Default is true. This field cannot be changed once the widget is constructed.
- model
-
RichTextModel model
Backing data model of text document.
- multiLine
-
const Bool multiLine := true
False for text fields and true for multi-line text areas. Default is true. This field cannot be changed once the widget is constructed.
- onModify
-
|Event| onModify
Callback when the text is modified.
- text
-
Str text
Convenience for
model.text
(model must be installed). - vscroll
-
const Bool vscroll := true
True use a vertical scrollbar for multiLine text widget. Default is true. This field cannot be changed once the widget is constructed.
- wrap
-
const Bool wrap := false
True to make wrap the text of a multiLine text widget. Default is false. This field cannot be changed once the widget is constructed.