ToolboxExtension Class
The Web Dashboard Toolbox extension that provides access to the dashboard menu and allows you to add dashboard items, as well as undo or repeat user actions.
Namespace: DevExpress.Dashboard
Assembly: DevExpress.Dashboard.v17.2.Web.Scripts.dll
Declaration
Remarks
The code sample below demonstrates how to obtain the ToolboxExtension and remove the New… command from the dashboard menu using the ToolboxExtension.removeMenuItem method:
function onBeforeRender(sender) {
var dashboardControl = sender.GetDashboardControl();
var toolboxExtension = dashboardControl.findExtension("toolbox");
toolboxExtension.removeMenuItem("create-dashboard");
}
The ToolboxExtension.removeToolboxItem method can be used to remove a button allowing end-users to add the specified dashboard item:
function onBeforeRender(sender) {
// ...
toolboxExtension.removeToolboxItem("maps", "BubbleMap");
}
Inheritance
Object
IExtension
ToolboxExtension
See Also