API reference
Every public class, method, and event in @codexo/exojs. Generated from source.
interfacePlatformTextInput
The transport between a text-editing widget and whatever the host uses to receive real keyboard and IME input. The contract knows no text model: it mirrors state in (`setValue`), mirrors geometry in (`setBounds`, `setCaretRect`), states hints (`setHints`), and reports edits and composition progress out through its signals. `createTextInput` may return `null` - a host with no way to receive text input is a supported outcome, not an error. The widget renders and takes focus, but rejects edits.
import { PlatformTextInput } from '@codexo/exojs'The transport between a text-editing widget and whatever the host uses to receive real keyboard and IME input. The contract knows no text model: it mirrors state in (`setValue`), mirrors geometry in (`setBounds`, `setCaretRect`), states hints (`setHints`), and reports edits and composition progress out through its signals.
`createTextInput` may return `null` - a host with no way to receive text input is a supported outcome, not an error. The widget renders and takes focus, but rejects edits.
blur(): voiddestroy(): voidfocus(): voidsetValue(text: string, selectionStart: number, selectionEnd: number): voidonComposition: SignalLightweight typed event emitter. Each `Signal` represents one named notification channel (e.g. `onResize`, `onFrame`). Listeners are added with Signal.add or S…<[CompositionStateProgress of a host-side composition (an IME candidate). While one is in flight its text lives only here; it merges into the value when the composition ends.]>onEdit: SignalLightweight typed event emitter. Each `Signal` represents one named notification channel (e.g. `onResize`, `onFrame`). Listeners are added with Signal.add or S…<[TextEditIntentOne edit the host wants applied to the text model. `insert` carries the text to place over the current selection (an IME commit, a typed character, a paste); `…]>