Skip to main content

number_input

Function number_input 

Source
pub fn number_input(id: &str, edit: Edit, name: &str) -> El
Expand description

A number field: a text input (id) with up / down steppers ({id}:inc, {id}:dec). The rules are a NumberSpec; in uzor-framework register them with kit::dom(..).number(id, spec), which filters typing, steps on the buttons, the arrow keys and the wheel over the focused field, and tidies the text on blur.