diff --git a/white-label-example.json b/white-label-example.json new file mode 100644 index 0000000..8e1a5ce --- /dev/null +++ b/white-label-example.json @@ -0,0 +1,52 @@ +******* Example of custom menu ******** +* +* menuItems - array of custom menu items +* disabledMenuItems - array of ThingsBoard menu items to be disabled, available menu items names: +* +* "home", "tenants", "widget_library", "mail_server", "mail_templates", "white_labeling", "login_white_labeling", +* "custom_translation", "custom_menu", "rule_chains", "converters", "integrations", "roles", "customers_hierarchy", +* "user_groups", "customer_groups", "asset_groups", "device_groups", "entity_view_groups", +* "dashboard_groups", "scheduler", "audit_log" + +{ + "disabledMenuItems": [ + "home" + ], + "menuItems": [ + { + "name": "My Custom Menu", + "iconUrl": null, + "materialIcon": "menu", + "iframeUrl": "https://thingsboard.io", + "dashboardId": "", + "hideDashboardToolbar": true, + "setAccessToken": false, + "childMenuItems": [] + }, + { + "name": "My Custom Menu 2", + "iconUrl": null, + "materialIcon": "menu", + "iframeUrl": "https://thingsboard.io", + "setAccessToken": false, + "childMenuItems": [ + { + "name": "My Child Menu 1", + "iconUrl": null, + "materialIcon": "menu", + "iframeUrl": "https://thingsboard.io", + "setAccessToken": false, + "childMenuItems": [] + }, + { + "name": "My Child Menu 2", + "iconUrl": null, + "materialIcon": "menu", + "iframeUrl": "https://thingsboard.io", + "setAccessToken": false, + "childMenuItems": [] + } + ] + } + ] +} \ No newline at end of file diff --git a/white-label-menu.json b/white-label-menu.json new file mode 100644 index 0000000..7706c31 --- /dev/null +++ b/white-label-menu.json @@ -0,0 +1,26 @@ +{ + "disabledMenuItems": [ + "tenants", + "home_settings", + "white_labeling", + "custom_menu", + "widget_library", + "mail_server", + "mail_templates", + "edge_groups", + "login_white_labeling", + "custom_translation", + "rule_chains", + "converters", + "integrations", + "roles", + "customers_hierarchy", + "user_groups", + "customer_groups", + "asset_groups", + "device_groups", + "entity_view_groups", + "scheduler" + ], + "menuItems": [] +} \ No newline at end of file