Skip to content
pixi-silk
GitHub repository
Interface

TextEditorState

import type { TextEditorState } from 'pixi-silk/ui/textedit';

The reactive state of a TextEditor.

Properties#

PropertyTypeDescriptionDefined in
committedReadSignal<string>The text as of the last commit (Enter or blur), like the DOM change event.ui/textedit.ts:112
composingReadSignal<boolean>True while an input method composes text (Japanese, Chinese, dead keys).ui/textedit.ts:118
focusedReadSignal<boolean>True while the editor has keyboard focus.ui/textedit.ts:114
selectionReadSignal<TextSelection>Caret and selection.ui/textedit.ts:116
textSignal<string>The text. Changes on every edit, like the DOM input event. Setting it replaces the text.ui/textedit.ts:110