Displays buttons on a responsive menu.
Place the buttons for the menu inside this component's HTML tags. They must use the following structure:
<adf-buttons-action-menu>
<button mat-menu-item (click)="showSettings()">
<mat-icon>settings</mat-icon><span>Settings</span>
</button>
<button mat-menu-item (click)="delete()">
<mat-icon>delete</mat-icon><span>Delete</span>
</button>
</adf-buttons-action-menu>
Note that the buttons themselves also have an icon (supplied as a <mat-icon
)
and a label (supplied as a <span>
).
They also make use of the Angular material directive mat-menu-item
.
<button mat-menu-item (click)="event()">
<mat-icon> icon </mat-icon>
<span> label </span>
</button>
This component is fully responsive and it will display one of two different layouts depending on the screen size:
Desktop View
Mobile View
The component has a property called isMenuEmpty
that you can access from code. If this is
set to true then the component will not show an empty menu with no buttons defined.
© 2023 Alfresco Software, Inc. All Rights Reserved.
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.