forms::dropdown

Structs

A dropdown list control, delegating to a platform-specific native dropdown implementation. Allows the selection of a single option from a list of options.

Properties

stroke

Type: Property<Stroke>

Outline stroke for the dropdown control.

options

Type: Property<Vec<String>>

List of selectable option labels.

selected_id

Type: Property<u32>

Index of the currently selected option.

style

Type: Property<TextStyle>

Text style for option labels.

background

Type: Property<Color>

Dropdown background color.

corner_radius

Type: Property<f64>

Dropdown corner radius, in pixels.