Waffle Menu
A dropdown menu displaying application links with icon or image tiles
Demo
API
Tag
| Name | Description |
<aui-waffle-menu>
|
Custom Element that displays a waffle menu button that opens a dropdown menu containing application links as image tiles or icon links. |
Attributes
| Name | Value | Required | Description |
activeitem |
dataRef of a menu item |
Sets the active item in the waffle menu. When set to a menu item's dataRef, the menu item will be highlighted automatically. See Active Item below for complete list of valid values. |
|
menuitems |
string |
Stringified JSON array of menu item objects. See Guidelines below for the structure of menu item objects. |
Properties
| Name | Value | Required | Description |
|---|---|---|---|
activeItem |
dataRef of a menu item |
Sets the active item in the waffle menu. When set to a menu item's dataRef, the menu item will be highlighted automatically. See Active Item below for complete list of valid values. |
|
menuItems |
WaffleMenuItem[] | string |
Array of menu item objects or stringified JSON array. See Guidelines below for the structure of menu item objects. |
Demo
API
Tag
| Name | Description |
<AuiWaffleMenu>
|
Custom Element that displays a waffle menu button that opens a dropdown menu containing application links as image tiles or icon links. |
Props
| Name | Value | Required | Description |
activeItem |
dataRef of a menu item |
Sets the active item in the waffle menu. When set to a menu item's dataRef, the menu item will be highlighted automatically. See Active Item below for complete list of valid values. |
|
menuItems |
WaffleMenuItem[] | string |
Array of menu item objects or stringified JSON array. See Guidelines below for the structure of menu item objects. |
Skylab React links
Guidelines
Displaying in aui-header
To display the waffle menu in aui-header, add the integratewafflemenu attribute to the header element.
Active item
The activeItem attribute (passed through the header element's wafflemenuactiveitem attribute) is used to set the active item in the waffle menu. Complete list of valid values:
avalara-portalavalara-portal-sandboxvat-reportingvat-reporting-sandbox
Menu Items Structure
The menuItems property accepts an array of menu item objects. Each object should follow this structure:
Menu Item Types
The waffle menu supports two types of menu items:
Image Links
Image links display larger tiles with an image/logo and label. These are typically used for primary applications.
Icon Links
Icon links display smaller items with just an icon and label. These are typically used for secondary actions or utility links.
Design
Design resources can be found on the Skylab design documentation site: skylab.avalara.com