Checkboxes Dropdown

Parameters you can pass

ParametersData typeDescription
class_namestringWrapper class (you van pass several classes divided by spac)
itemsarray of objectsArray of checkbox elements
disabledbooleanIt shows if it's disabled

Parameters of items

ParametersData typeDescription
idstringCheckbox ID that will be passed to value
optionstringText of the checkbox
namestringName of the checkbox input
is_checkedbooleanIt 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
  });