Skip to main content

select()

selects a specified Sidebar item

select(id: Id, unselect: boolean): void;

Parameters:

  • id: string | number - the id of a Sidebar item
  • unselect: boolean - optional, true to unselect previously selected items; otherwise, false; true by default

Example

sidebar.select("categoryPost");

Related sample: Sidebar. Select/Unselect

Change log:

added in v6.5