Skip to main content

numeric_input

Function numeric_input 

Source
pub fn numeric_input(
    value: &str,
    selection: &Selection,
    key: &str,
    opts: NumericInputOpts<'_>,
) -> El
Expand description

A numeric input field: [−] [text_input] [+].

The two spinner buttons are routed {key}:dec and {key}:inc; the inner text input is keyed {key}:field. The wrapping row is keyed {key} itself so layout/test code can find the whole composite by the same name the app uses.