Skip to main content

disable()

disables and dims items of Sidebar

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

Parameters:

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

Example

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

Related sample: Sidebar. Enable/Disable

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

// disables all Sidebar itemssidebar.disable();