Checkbox
PCheckbox supports single boolean values or arrays of checked values when used in lists.
Demo
Usage
<PCheckbox v-model="accepted">I agree</PCheckbox>
<PCheckbox v-model="selectedIds" :key-value="row.id">
Props
| Prop | Type | Default | Notes |
|---|
value | Boolean | Array | false | v-model value or list of checked values. |
keyValue | String | Number | null | Value to push into an array model. |
disabled | Boolean | false | Disables the input. |
indeterminate | Boolean | false | Sets the indeterminate UI state. |
Events
| Event | Payload | Description |
|---|
input | Boolean | Array | Emits on change. |
Slots
| Slot | Description |
|---|
| default | Optional label text. |