-
Notifications
You must be signed in to change notification settings - Fork 133
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a000645
commit 0a31d70
Showing
7 changed files
with
1,444 additions
and
824 deletions.
There are no files selected for viewing
55 changes: 43 additions & 12 deletions
55
libs/core/shellbar/shellbar-actions-mobile/shellbar-actions-mobile.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,45 @@ | ||
@if (shellbarActions.length > 0 || searchExists) { | ||
<fd-overflow-layout [maxVisibleItems]="3"> | ||
<fd-menu> | ||
@for (action of shellbarActions; track action; let i = $index) { | ||
<li *fdOverflowItemRef="let hidden" fdOverflowLayoutItem fd-menu-item> | ||
<a fd-menu-interactive href="#"> | ||
<fd-menu-addon position="before" [glyph]="action.glyph"></fd-menu-addon> | ||
<span fd-menu-title>{{ action.label }}</span> | ||
</a> | ||
</li> | ||
} | ||
</fd-menu> | ||
</fd-overflow-layout> | ||
<div class="fd-shellbar-collapse"> | ||
<fd-action-sheet placement="bottom-end" #actionSheet> | ||
<fd-action-sheet-control> | ||
<button | ||
fd-button | ||
fdType="transparent" | ||
glyph="overflow" | ||
class="fd-shellbar__button" | ||
[attr.aria-label]="'coreShellbar.collapsedItemMenuLabel' | fdTranslate" | ||
> | ||
@if (totalNotifications) { | ||
<span class="fd-button__badge"> | ||
{{ totalNotifications }} | ||
</span> | ||
} | ||
</button> | ||
</fd-action-sheet-control> | ||
<fd-action-sheet-body> | ||
@if (searchExists) { | ||
<li | ||
fd-action-sheet-item | ||
tabindex="-1" | ||
glyph="search" | ||
[label]="'coreShellbar.search' | fdTranslate" | ||
(click)="showSearch.emit(); actionSheet.close()" | ||
></li> | ||
} | ||
@for (action of shellbarActions; track action) { | ||
<li | ||
fd-action-sheet-item | ||
tabindex="-1" | ||
[glyph]="action.glyph" | ||
[label]="action.label" | ||
(click)="actionClicked(action, $event)" | ||
> | ||
@if (action.notificationCount) { | ||
<span class="fd-button__badge">{{ action.notificationCount }}</span> | ||
} | ||
</li> | ||
} | ||
</fd-action-sheet-body> | ||
</fd-action-sheet> | ||
</div> | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.