You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: modules/customizing-the-appearance/proc-customize-rhdh-sidebar-menuitems.adoc
+12Lines changed: 12 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -26,30 +26,36 @@ dynamicPlugins:
26
26
title: Home
27
27
icon: home
28
28
priority: 100
29
+
enabled: true
29
30
default.my-group:
30
31
title: My Group
31
32
icon: group
32
33
priority: 90
34
+
enabled: true
33
35
default.catalog:
34
36
title: Catalog
35
37
icon: category
36
38
to: catalog
37
39
priority: 80
40
+
enabled: true
38
41
default.apis:
39
42
title: APIs
40
43
icon: extension
41
44
to: api-docs
42
45
priority: 70
46
+
enabled: true
43
47
default.learning-path:
44
48
title: Learning Paths
45
49
icon: school,
46
50
to: learning-paths
47
51
priority: 60
52
+
enabled: true
48
53
default.create:
49
54
title: Create
50
55
icon: add
51
56
to: create
52
57
priority: 50
58
+
enabled: true
53
59
----
54
60
55
61
.Procedure
@@ -67,6 +73,7 @@ dynamicPlugins:
67
73
title: _<plugin_page_title>_ # <4>
68
74
priority: 10 # <5>
69
75
parent: favorites # <6>
76
+
enabled: true # <7>
70
77
----
71
78
<1> `_<plugin_name>_`: Enter the plugin name. This name is the same as the `scalprum.name` key in the `package.json` file.
72
79
<2> `_<menu_item_name>_`: Enter a unique name in the main sidebar navigation for either a standalone menu item or a parent menu item. If this field specifies a plugin menu item, the name of the menu item must match the name using in the corresponding path in `dynamicRoutes`. For example, if `dynamicRoutes` defines `path: /my-plugin`, then `menu_item_name` must be defined as `my-plugin`.
@@ -79,6 +86,7 @@ dynamicPlugins:
79
86
// Update <4> for release 1.6 as this option (currently a workaround) would be added as a functionality. RHIDP-6333.
80
87
<5> `priority`: (Optional) Sets the order in which menu items appear in the sidebar. The default priority is 0, which places the item at the bottom of the list. A higher priority value places the item higher in the sidebar. You can define this field for each section.
81
88
<6> `parent`: (Optional) Enter the parent menu item under which the current item is nested. If this field is used, the parent menu item must be defined elsewhere in the `menuItems` configuration of any enabled plugin. You can define this field for each section.
89
+
<7> `enabled`: (Optional) If this field is used, to hide the menu item from the sidebar, set the value to `false`. To display the menu item in the sidebar, set the value to `true`.
82
90
83
91
+
84
92
.Example `menuItems` configuration
@@ -130,6 +138,7 @@ dynamicPlugins:
130
138
title: _<my_menu_title>_ # <8>
131
139
to: _<path_to_the_menu_target_page>_ # <9>
132
140
priority: 100 # <10>
141
+
enabled: true # <11>
133
142
----
134
143
<1> `default._<menu_group_parent_item_name>_`: (Optional) Enter the menu group parent item name to configure static main menu items. If no `default._<menu_item_name>_` has a `parent` value set, this field is not needed.
135
144
<2> `icon`: Enter the menu icon. Required for parent menu items.
@@ -142,6 +151,7 @@ dynamicPlugins:
142
151
// Update <8> for release 1.6 as this option (currently a workaround) would be added as a functionality. RHIDP-6333.
143
152
<9> `to`: (Optional) Enter the path that the menu item navigates to. If it is not set, it defaults to the home page.
144
153
<10> `priority`: (Optional) Enter the order of this menu item within its menu level.
154
+
<11> `enabled`: (Optional) If this field is used, to display the menu item in the sidebar, set the value to `true`. To hide the menu item from the sidebar, set the value to `false`.
145
155
146
156
+
147
157
.Example `mainItems` configuration
@@ -164,6 +174,7 @@ default.main-menu-items:
164
174
title: References # <5>
165
175
icon: school # <6>
166
176
to: /references # <7>
177
+
enabled: true # <8>
167
178
----
168
179
<1> `icon`: Specifies if you want to change the icon default menu item for the catalog.
169
180
<2> `title`: Specifies an empty string `" "` to hide the learning path from the default sidebar.
@@ -172,3 +183,4 @@ default.main-menu-items:
172
183
<5> `title`: Specifies a name for `default.references`
173
184
<6> `icon`: Displays the `school` icon.
174
185
<7> `to`: Redirects `default.references` to the `/references` page.
186
+
<8> `enabled`: (Optional) If this field is used, to display the menu item in the sidebar, set the value to `true`. To hide the menu item from the sidebar, set the value to `false`.
0 commit comments