Skip to main content

hide()

hides items of Sidebar

hide(ids: Id | Id[]): void;

Parameters:

ids: string | number | array - optional, an ID or an array of IDs of items

Example

sidebar.hide("search");// several at a timesidebar.hide(["search","currentButton","edit"]);

Related sample: Sidebar. Show/Hide

Starting from v7.0, it is possible to hide all items at once by using the method without the parameter:

// hides all Sidebar itemssidebar.hide();