Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

gaffa-checkbox

KoryNunn4MIT1.1.0

A checkbox view for use in gaffa

gaffa, checkbox, view

readme

gaffa-checkbox

A checkbox view for use in gaffa

Install:

npm i gaffa-checkbox

Add to gaffa:

var Checkbox = require('gaffa-checkbox');

gaffa.registerConstructor(Checkbox);

API

Properties (instanceof Gaffa.Property)

gaffa-checkbox inherits all properties from the base Gaffa.View

checked (get, set) Boolean

Whether or not the element is checked

text (get) String

The elements label text

showLabel (get) Boolean

Whether or not to render the label