Skip to content
pixi-silk
GitHub repository
Interface

TextFieldOptions

import type { TextFieldOptions } from 'pixi-silk/ui/inspector';

Options of TextField.

Properties#

PropertyTypeDescriptionDefined in
placeholder?stringText shown while the field is empty.ui/panels/fields.ts:413

Methods#

onCommit()#

onCommit(text: string): void;

Called with the new text once per commit (Enter or blur).

Parameters#

ParameterType
textstring

Returns#

void