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
Provide API, header slot, displayed in the top-most area of the SideNavigation component to enable users adding additional information, usually profile/user data, avatar, etc.
Also includes a minor fix (min-width: 3rem;) that prevents the SideNavigation (when collapsed) from shrinking due to resize.
FIXES#2518
Copy file name to clipboardExpand all lines: packages/fiori/src/SideNavigation.js
+29-4
Original file line number
Diff line number
Diff line change
@@ -51,6 +51,20 @@ const metadata = {
51
51
type: HTMLElement,
52
52
},
53
53
54
+
/**
55
+
* Defines the header of the <code>ui5-side-navigation</code>.
56
+
*
57
+
* <br><br>
58
+
* <b>Note:</b> The header is displayed when the component is expanded - the property <code>collapsed</code> is false;
59
+
*
60
+
* @public
61
+
* @since 1.0.0-rc.11
62
+
* @slot
63
+
*/
64
+
header: {
65
+
type: HTMLElement,
66
+
},
67
+
54
68
/**
55
69
* Defines the fixed items at the bottom of the <code>ui5-side-navigation</code>. Use the <code>ui5-side-navigation-item</code> component
56
70
* for the fixed items, and optionally the <code>ui5-side-navigation-sub-item</code> component to provide second-level items inside them.
@@ -87,10 +101,13 @@ const metadata = {
87
101
* <h3 class="comment-api-title">Overview</h3>
88
102
*
89
103
* The <code>SideNavigation</code> is used as a standard menu in applications.
90
-
* It consists of two containers: the main navigation section (top-aligned) and the secondary section (bottom-aligned).
91
-
* Usually the main navigation section is related to the user’s current work context,
92
-
* whereas the secondary section is mostly used to link additional information that may be of interest (legal information, developer communities, external help, contact information and so on).
93
-
104
+
* It consists of three containers: header (top-aligned), main navigation section (top-aligned) and the secondary section (bottom-aligned).
105
+
* <ul>
106
+
* <li>The header is meant for displaying user related information - profile data, avatar, etc.</li>
107
+
* <li>The main navigation section is related to the user’s current work context</li>
108
+
* <li>The secondary section is mostly used to link additional information that may be of interest (legal information, developer communities, external help, contact information and so on). </li>
109
+
* </ul>
110
+
*
94
111
* <h3>Usage</h3>
95
112
*
96
113
* Use the available <code>ui5-side-navigation-item</code> and <code>ui5-side-navigation-sub-item</code> components to build your menu.
@@ -227,6 +244,14 @@ class SideNavigation extends UI5Element {
0 commit comments