DESCRIPTION: ----------- Adding a new module to the current package “UsrActivityItemViewConfig” and extending the properties of the module “BaseDashboardItemViewConfig” from ActionDashboard package. CODE: ----- define("UsrActivityItemViewConfig", ["BaseDashboardItemViewConfig", "UsrActivityItemViewConfig"], function(){ Ext.define("Terrasoft.configuration.UsrActivityItemViewConfig", { extend: "Terrasoft.BaseDashboardItemViewConfig", alternateClassName: "Terrasoft.UsrActivityItemViewConfig", /** * @inheritdoc Terrasoft.BaseDashboardItemViewConfig#getActionsViewConfig * @overridden */ getActionsViewConfig: function(){ return { "name": "Actions", "itemType": Terrasoft.ViewItemType.CONTAINER, "classes": {wrapClassName: ["dashboard-item-actions on-hover-visible"]}, "items": [ { "name": "Cancel", "itemType": Terrasoft.ViewItemType.BUTTON, "style": Terrasoft.controls.ButtonEnums.style.BLUE, "caption": {"bindTo": "CancelButtonCaption"}, "click": {"bindTo": "onCancelButtonClick"}, "classes": { "textClass": "dashboard-item-right" }, "visible": {"bindTo": "CancelButtonVisible"} }, { "name": "Execute", "itemType": Terrasoft.ViewItemType.BUTTON, "style": Terrasoft.controls.ButtonEnums.style.GREEN, "caption": {"bindTo": "ExecuteButtonCaption"}, "click": {"bindTo": "onExecuteButtonClick"}, "classes": { "textClass": "dashboard-item-right" }, "visible": {"bindTo": "ExecuteButtonVisible"} }, { "name": "TestButton", "itemType": Terrasoft.ViewItemType.BUTTON, "style": Terrasoft.controls.ButtonEnums.style.RED, "caption": "CANCEL", "click": {"bindTo": "OnRejectButtonClick"}, "classes": { "textClass": "dashboard-item-right" }, "visible": true } ] }; }, }); });