disable()
disables and dims items of Sidebar
disable(ids?: (string | number) | (string | number)[]): void;
Parameters:
ids: string | number | array
- optional, the ID or an array of IDs of items
Example
sidebar.disable("search");
// several at a time
sidebar.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 items
sidebar.disable();