Skip to Content
API ReferencePasswordField

PasswordField

A single-line password input field. Identical in API to TextField but masks the entered characters. Maps to a UIToolkit TextField with isPasswordField = true.

Constructor

PasswordField

Creates an PasswordField element.

ParameterDescription
valueThe current text value.
onChangedCallback invoked on every value change.
placeholderOptional placeholder text shown when the field is empty.
readOnlyWhen true the field is not editable.
keyAn optional key for reconciliation identity.

Properties

OnChanged

Callback invoked whenever the text value changes. Receives the new string value as its argument.

Placeholder

Placeholder text shown when the field is empty. Null means no placeholder is displayed.

ReadOnly

Whether the field is read-only. When true the user cannot edit the value.

Value

The current text value of the password field.

Methods

ShouldRebuild

Last updated on