Skip to main content

TextField

Editable one-line text input box.


Config is a struct of the following type:

struct {
/// The default text of the TextField. For example, if this is 'Test',
/// the user will see an input text field which will already have 'Test' written.
text: [:0]const u8 = "",
};

Functions

No non-property functions specific to TextField... yet

Properties

NameTypeDescription
text[]const u8The text this TextField contains
readOnlyboolWhether the TextField is read-only

Reminder: each property has get, set and bind methods, so there are getText() []const u8, setText([]const u8) and bindText(DataWrapper([]const u8)) functions.
And similarly for readOnly

Examples

TextField(.{})