disable

disables and dims items of Sidebar

void disable(string|array ids);

Parameters

idsstring|arrayoptional, the ID or an array of IDs of items

Example

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

Related samples

Details

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();
See also
Back to top