Skip to content

Commit

Permalink
chore: address code comments
Browse files Browse the repository at this point in the history
  • Loading branch information
TeodorTaushanov committed Jan 6, 2025
1 parent 640f157 commit 70dde21
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion packages/fiori/src/NavigationLayout.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ class NavigationLayout extends UI5Element {
_defaultSideCollapsed = isPhone() || (isTablet() && !isCombi());

/**
* Specifies the navigation mode.
* Specifies the navigation layout mode.
* @default "Auto"
* @public
*/
Expand Down
6 changes: 3 additions & 3 deletions packages/fiori/src/types/NavigationLayoutMode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,18 @@
*/
enum NavigationLayoutMode {
/**
* Automatically calculates the collapsed mode based on the screen device type.
* Automatically calculates the navigation layout mode based on the screen device type.
* `Expanded` on desktop and `Collapsed` on tablet and phone.
* @public
*/
Auto = "Auto",
/**
* Collapsed
* Collapsed side navigation.
* @public
*/
Collapsed = "Collapsed",
/**
* Expanded
* Expanded side navigation.
* @public
*/
Expanded = "Expanded",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,10 @@ import "@ui5/webcomponents-icons/dist/document-text.js";
import "@ui5/webcomponents-icons/dist/compare.js";
import "@ui5/webcomponents-icons/dist/locked.js";

import NavigationLayoutMode from "@ui5/webcomponents-fiori/dist/types/NavigationLayoutMode.js";

document.querySelector("#startButton").addEventListener("click", function (event) {
nl1.mode = nl1.isSideCollapsed() ? "Expanded" : "Collapsed";
nl1.mode = nl1.isSideCollapsed() ? NavigationLayoutMode.Expanded : NavigationLayoutMode.Collapsed;
});

document.querySelector("#sn1").addEventListener("selection-change", function (event) {
Expand Down

0 comments on commit 70dde21

Please sign in to comment.