Added placeholder-text to TextEdit (#5239)

---------

Co-authored-by: Simon Hausmann <simon.hausmann@slint.dev>
This commit is contained in:
Florian Blasius 2024-05-15 10:20:13 +00:00 committed by GitHub
parent bd777b4312
commit a3d4112897
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 140 additions and 87 deletions

View file

@ -15,6 +15,7 @@ shortcut will be implemented in a future version: <https://github.com/slint-ui/s
- **`read-only`** (_in_ _bool_): When set to true, text editing via keyboard and mouse is disabled but selecting text is still enabled as well as editing text programmatically (default value: `false`)
- **`wrap`** (_in_ _enum [`TextWrap`](../builtins/enums.md#textwrap)_): The way the text wraps (default: word-wrap).
- **`horizontal-alignment`** (_in_ _enum [`TextHorizontalAlignment`](../builtins/enums.md#texthorizontalalignment)_): The horizontal alignment of the text.
- **`placeholder-text`**: (_in_ _string_): A placeholder text being shown when there is no text in the edit field.
### Functions