Menu
Description
On this page you will find how to affect only the icon that appears in the menu.
nota
To activate one or more properties of the the new menu, the Show new menu button should be enabled
Properties | Type | Required | Description |
---|---|---|---|
Show new menu | Boolean | false | Display the new menu. |
On Initialized | Function | false | A function used to save the UI component instance. |
On Item Click | Function | String | false | A function that is executed when a collection item is clicked or tapped. |
On Showing | Function | false | A function that is executed before the context menu is shown. |
Basic Usage
function onShowing(menus) {
let obj = menus.find((a) => a.id == "Contracts");
if (obj) {
obj.icon = "far fa-calendar-alt";
}
return menus;
}