FloatingActionButton Data Binding
The FloatingActionButton displays a stack of related actions in a popup when users click it. Pass the actions as a collection of DialItem objects to the dialItems input. The popup appears only when the collection contains at least one item.
This article refers to the popup that holds the actions as a Dial, and to its items as Dial items.
Item Fields
All fields of a dial item are optional. The following fields define the item content and state. For the complete list, see the DialItem API reference.
label—The text of the item.icon,svgIcon, andiconClass—The icon of the item.disabled—Determines whether the item is disabled. For more details, refer to the Disabled Items section.
The following demo shows text-only items, labeled icons, and icon-only items.
Item Placement
The popup positions the items above or below the FloatingActionButton, depending on its vertical alignment. For a button aligned to the bottom of its container, the items appear above it. For a button aligned to the top or middle, the items appear below it.