Checkboxes Dropdown
Parameters you can pass
Parameters | Data type | Description |
---|---|---|
class_name | string | Wrapper class (you van pass several classes divided by spac) |
items | array of objects | Array of checkbox elements |
disabled | boolean | It shows if it's disabled |
Parameters of items
Parameters | Data type | Description |
---|---|---|
id | string | Checkbox ID that will be passed to value |
option | string | Text of the checkbox |
name | string | Name of the checkbox input |
is_checked | boolean | It shows if it's checked |
Default
self.render({ ref: '/tmpl/controls/checkboxes_dropdown.twig' }, {
items: [
{ id: 1, option: 'Cats' },
{ id: 2, option: 'Dogs' },
{ id: 3, option: 'Snakes' }
]
});
Disabled
self.render({ ref: '/tmpl/controls/checkboxes_dropdown.twig' }, {
items: [
{ id: 1, option: 'Cats' },
{ id: 2, option: 'Dogs' },
{ id: 3, option: 'Snakes' }
],
disabled: true
});
Updated 5 months ago