Class TextField

Single-line editable text field

class TextField
  : Widget

Constructors

NameDescription
this ()

Fields

TypeNameDescription
bool
copyWholeLineWhenNoSelection When true, allows copy/cut the whole line if there is no selection
bool
enableCaretBlinking When true, enables caret blinking, otherwise it's always visible
void delegate(dstring)
onChange Signals when the editor content changes
dchar
passwordChar A character (e.g. * or •) to hide password-like input. 0 for normal fields
dstring
placeholder Placeholder is a short peace of text that describes the expected input
bool
readOnly When true, user cannot change content of the editor
bool
wantTabs

18 inherited fields

Properties

TypeNameDescription
dstring
text[set] Set text as a string. Replaces any already typed text

Methods

NameDescription
createElement ()
updateElement (element)

10 inherited methods