plushie/widget/text_editor
Text editor widget builder (multi-line text editing).
Types
pub opaque type TextEditor
Values
pub fn a11y(te: TextEditor, a: a11y.A11y) -> TextEditor
Set accessibility properties for this widget.
pub fn highlight_syntax(
te: TextEditor,
lang: String,
) -> TextEditor
Set the syntax highlighting language.
pub fn highlight_theme(
te: TextEditor,
theme: String,
) -> TextEditor
Set the syntax highlighting theme.
pub fn ime_purpose(te: TextEditor, p: String) -> TextEditor
Set the IME purpose hint.
pub fn key_bindings(
te: TextEditor,
bindings: List(node.PropValue),
) -> TextEditor
Set declarative key binding rules. Each rule is a DictVal.
pub fn max_height(te: TextEditor, h: Float) -> TextEditor
Set the maximum height in pixels.
pub fn min_height(te: TextEditor, h: Float) -> TextEditor
Set the minimum height in pixels.
pub fn placeholder(te: TextEditor, p: String) -> TextEditor
Set the placeholder text.
pub fn placeholder_color(
te: TextEditor,
c: color.Color,
) -> TextEditor
Set the placeholder text color.
pub fn selection_color(
te: TextEditor,
c: color.Color,
) -> TextEditor
Set the selection highlight color.
pub fn wrapping(
te: TextEditor,
w: wrapping.Wrapping,
) -> TextEditor
Set the text wrapping mode.