select()
selects a specified Sidebar item
select(id: string | number, unselect: boolean): void;
Parameters:
id: string | number
- the id of a Sidebar itemunselect: 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