<tap-checkbox>
Checkbox and checkbox group. Used for selecting multiple choices among a set of options, supporting indeterminate state.
Example
Loading...
<tap-checkbox .checked=${true}> Checked </tap-checkbox> <tap-checkbox .checked=${false}> Unchecked </tap-checkbox> <tap-checkbox .indeterminate=${true}> Indeterminate </tap-checkbox> <tap-checkbox .disabled=${true} .checked=${true}> Disabled </tap-checkbox>
Loading...
<tap-checkbox-group
.heading=${"Fruits"}
.value=${["apple","banana"]}
.options=${ [ {"label":"Apple","value":"apple"}, { "label": "Banana", "value": "banana", "description": "Yellow fruit" }, { "label": "Orange", "value": "orange", "disabled": true } ] }
@change=${(evt) => evt.currentTarget.value = evt.detail}></tap-checkbox-group>
<tap-checkbox> API
Shadow DOM; Extends GemElement
Instance Properties
| Property(Attribute) | Reactive | Type |
|---|---|---|
checked(checked) |
Yes | boolean |
indeterminate(indeterminate) |
Yes | boolean |
disabled(disabled) |
Yes | boolean |
change |
Emitter<boolean> |
|
value(value) |
Yes | string |
label(label) |
Yes | string |
Other
| Type | Value |
|---|---|
| Event | change |
| Slot | unnamed |
| CSS State | delegate-focus |
<tap-checkbox-group> API
Extends GemElement
Instance Properties
| Property(Attribute) | Reactive | Type |
|---|---|---|
orientation(orientation) |
Yes | 'horizontal' | 'vertical' |
heading(heading) |
Yes | string |
disabled(disabled) |
Yes | boolean |
change |
Emitter<any[]> |
|
value |
Yes | any[] |
options |
Yes | Option[] |
Other
| Type | Value |
|---|---|
| Event | change |
| CSS State | tap-list |
