The b.Checkbox
constructor creates a checkbox input, together with its label container.
Modifier | Action |
---|
b.Disabled | Disable the checkbox input |
Child | Action |
---|
b.OnInput(...any) | Apply children to the <input> element |
b.OnLabel(...aby) | Apply children to the <label> element |
string | Add to the <label> element |
gomponents.Node of type gomponents.AttributeType | Apply attribute to the <input> element |
gomponents.Node of type gomponents.ElementType | Add element to the <label> element |
e.Element | Add element to the <label> element |
Anything else | Apply child to the <input> element |