TextEditorState
import type { TextEditorState } from 'pixi-silk/ui/textedit';
The reactive state of a TextEditor.
Properties#
| Property | Type | Description | Defined in |
|---|---|---|---|
committed | ReadSignal<string> | The text as of the last commit (Enter or blur), like the DOM change event. | ui/textedit.ts:112 |
composing | ReadSignal<boolean> | True while an input method composes text (Japanese, Chinese, dead keys). | ui/textedit.ts:118 |
focused | ReadSignal<boolean> | True while the editor has keyboard focus. | ui/textedit.ts:114 |
selection | ReadSignal<TextSelection> | Caret and selection. | ui/textedit.ts:116 |
text | Signal<string> | The text. Changes on every edit, like the DOM input event. Setting it replaces the text. | ui/textedit.ts:110 |