TextInput
Use TextInput to collect text with the Roku keyboard dialog.
TextInput({
placeholderText: 'Search',
width: 800,
height: 100,
}).onTextChange(event => {
this.searchText = event.text;
})
The default renderMode: 'auto' selects TV text entry. The tv mode opens the keyboard dialog when the focused control receives OK. The web mode exposes a DOM text field for simulator use.
Use inputType for text, password, number, or email input. Provide a visible label, placeholder, and focus style. Handle text changes in the application and validate submitted values before continuing.
Test entry, cancellation, focus restoration, and password masking in the simulator and on Roku. The standalone TextEditBox and NativeVoiceTextEditBox controls expose the corresponding Roku SceneGraph primitives.