TextEditBox
TextEditBox wraps Roku's SceneGraph TextEditBox node and its browser simulator
implementation. Use it when the edit surface should appear directly, without
TextInput's TV keyboard-dialog presentation.
TextEditBox({
text: this.value,
hintText: 'Enter text',
maxTextLength: 64,
cursorPosition: this.value.length,
})
.onTextChange((event) => {
this.value = event.text ?? '';
});
Key fields are:
text,hintText, andsecureMode;cursorPositionandmaxTextLength;clearOnDownKey;textColorandhintTextColor;width(default 300) andheight(default 40);onTextChange.
onTextChange includes text; cursor movement is retained in
cursorPosition. Handle confirmation through a separate application action,
such as a focused Search or Save button. Use NativeVoiceTextEditBox for Roku
voice entry.