ractive-ez-check
v2.0.3
Published
Ractive Ez UI Check
Downloads
1
Maintainers
Readme
Ractive Ez Check
Check button component for ractive.js
Install
npm i ractive-ez-check
import 'ractive-ez-check';
import 'ractive-ez-check/themes/blue.less';
Theming requires less-loader. Icons require ractive-ez-icon
Usage
<EzCheck
value="{{ value }}"
disabled
label="I agree"
button="true"
iconChecked="arrow-up"
iconUnchecked="arrow-down" />
value
: The value of the checkboxdisabled
: True if the component is disabledlabel
: The text label of the checkboxbutton
: If true, render the checkbox as a buttoniconChecked
: When using ractive-ez-icon, can set an icon for the "checked" stateiconUnchecked
: When using ractive-ez-icon, can set an icon for the "unchecked" state
Custom label format
If a text label is not sufficient for your checkbox, you can override the label
partial:
<EzCheck value="{{ value }}" label>
<b>Bold label</b>
</EzCheck>
Shorthand subcomponents
EzCheck
: The base componentEzCheckButton
: Implied buttonEzCheckIcon
: Implied check icons (defaulting to checkbox-checked and checkbox-unchecked)EzCheckIconButton
: Implied icon button