CheckboxGroup
Requires:
@ray-js/ray≥0.5.10
Description
A multi-select group composed of multiple Checkbox components. Use either options or children.
Props
| Property | Type | Required | Default | Description |
|---|---|---|---|---|
| No | - | Option list; use either this or children. | ||
children | any | any[] | string | No | - | Child nodes, typically multiple Checkbox components; use either this or options. |
name | string | No | - | Form field name, used as the key on form submit |
disabled | boolean | No | false | Whether disabled |
| No | - | Triggered when the selection changes. | ||
id | string | No | - | id |
className | string | No | - | className |
style | any | No | - | style |
| No | - | onClick | ||
| No | - | onTouchStart | ||
| No | - | onTouchMove | ||
| No | - | onTouchCancel | ||
| No | - | onTouchEnd | ||
| No | - | onLongPress event callback, no longer trigger click event | ||
slotDeprecated | string | No | - | Mini program component slot identifier ↳ This property is only used in base Mini Program components and is not recommended in the React DSL. |
| No | - | Long press the trigger |