forms::textbox

Structs

Textbox

A text input field, with support for styling and font specification. Will be composited as a platform-specific native element, for example an <input> element in the browser or a UITextField on iOS.

Properties

text

Type: Property<String>

Current text value.

background

Type: Property<Color>

Textbox background color.

placeholder

Type: Property<String>

Placeholder text shown when empty, when supported by the chassis.

stroke

Type: Property<Stroke>

Border stroke.

corner_radius

Type: Property<f64>

Corner radius, in pixels.

style

Type: Property<TextStyle>

Text style.

outline

Type: Property<Stroke>

Focus outline stroke.

focus_on_mount

Type: Property<bool>

Requests focus when the textbox mounts.

multiline

Type: Property<bool>

Renders the textbox as a multiline text area when supported by the chassis.