enable

enables a disabled item(s) of Toolbar

void enable(string|array ids);

Parameters

idsstring|arrayone ID or an array of IDs of items

Example

toolbar.enable("save_btn");
// several at a time
toolbar.enable(["cancel_btn","del_btn"]);

Related samples

Details

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

// enables all Toolbar items
toolbar.enable();
See also
Back to top