DashboardMenuItem.id Property
Gets or sets a unique identifier of a dashboard menu item.
Namespace: DevExpress.Dashboard
Assembly: DevExpress.Dashboard.v17.2.Web.Scripts.dll
Declaration
Property Value
| Type | Description |
|---|---|
| String | A string value that is a menu item’s unique identifier. |
Remarks
Use the id property value to address to the dashboard menu item by id.
The following code snippet shows you how to remove the Open… item from the dashboard menu.
function onBeforeRender(sender, args) {
var dashboardControl = sender.getDashboardControl();
var toolbox = dashboardControl.findExtension('toolbox');
// Removes the dashboard menu item by its id.
toolbox.removeMenuItem("open-dashboard");
}
See Also