edifice.TextInputMultiline#
- class edifice.TextInputMultiline(text='', placeholder_text=None, on_change=None, **kwargs)[source]#
Bases:
QtWidgetElement
[QTextEdit
]Multiline text input widget.
Underlying Qt Widget QTextEdit
Accepts only plain text, not “rich text.”
Props
All props from
QtWidgetElement
plus:- Parameters:
text (
str
) – Initial text.placeholder_text (
Optional
[str
]) – “Setting this property makes the editor display a grayed-out placeholder text as long as the document() is empty.” See placeholderText.on_change (
Optional
[Callable
[[str
],Optional
[Awaitable
[None
]]]]) – Event handler for when the value of the text input changes, but only when the user is editing the text, not when the text prop changes.
Methods
__init__
([text, placeholder_text, on_change])register_ref
(reference)Registers provided
Reference
to this Element.set_key
(key)Set the key of an
Element
.Attributes
children
The children of this Element.
props
The props of this Element.
underlying
The underlying QWidget, which may not exist if this Element has not rendered.