Online documentation, manuals and tutorials
< All Topics
Print

Roller (EEZ-GUI)

Description

This Widget allows us to select one option from a list using touch based scrolling.

Properties

Specific

Data

EXPRESSION (integer)

The variable in which the selected value in the range of [Min, Max] is saved.

Min

EXPRESSION (any)

The minimum value that can be selected.

Max

EXPRESSION (any)

The maximum value that can be selected.

Text

EXPRESSION (any)

The text that is displayed in the widget for each possible value that is selected.

Example: set Data to selected_option (of type integer), set Min to 0, and Max to Array.length(TEXTS) - 1, where TEXTS is a variable of type array:string with Default value set to: ["Option 1", "Option 2", "Option 3", ...] and then we can set this property to TEXTS[selected_option].

Visible

EXPRESSION (boolean)

If the calculated expression is true then the Widget is visible, and if it is false then the Widget is hidden. It can be left blank, in which case the Widget is always visible.

Inputs

clear

SEQ | OPTIONAL

We need to send a signal to this input if we want to reset the selection, i.e. choose the first option.

Examples

  • eez-gui-widgets-demo
Page content