Skip to main content

enable()

enables disabled items of Sidebar

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

Parameters:

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

Example

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

Related sample: Sidebar. Enable/Disable

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

// enables all Sidebar itemssidebar.enable();