setOpenState

Opens the element with the passed id

void setOpenState(id id);
ididthe item id

Example

webix.ui({
  rows: [
    {
      id: 'grouplist',
      view: 'grouplist',
      // other parameters
    },
    {
      view: 'button',
      value: 'showItem',
      click: function () {
        $$('grouplist').setOpenState(1);
      },
    },
  ],
});

Details

Sets the state of view in which the last opened element will have the passed id. If the element has no children, then its parent will be opened.

Back to top