Checkbox, Switch & Sliders

This are used when there is a list of one or more options and the user must select one or more

Checkbox

Checkboxes are used when there are lists of options and the user may select any number of choices, including zero, one, or several.

// Checkbox Shorthand
schema: { 
    ctrl: 'checkbox',
    ... 
}
// Checkbox
schema: { 
    ctrl: { 
        type:'checkbox', 
        ...
    }, 
    ... 
}

Switches

Switches are used when there are lists of options and the user may select any number of choices, including zero, one, or several.

// Switch: 
schema: { 
    ctrl: { 
        type:'switch', 
        ...
    }, 
    ... 
}

Slider

A slider control is a composite control enable a user to set a numerical range or select from a set of items.

// Slider: 
schema: { 
    ctrl: { 
        type:'slider', 
        ...
    }, 
    ... 
}

Last updated