Skip to main content

FAB


FAB (Floating Action Button) is a circular button placed at the lower right-corner of the app's interface. It "floats" above the main content of the application hence the name. FABs can be used to represent a primary action of the app, such as creating a new item or initiating a new task. Also, it comes with an icon to help you represent its purpose clearly to the users.

FAB

FAB Properties

PropertyDescription
Bottom OffsetSets the FAB widget's distance from the bottom of the app.
Right OffsetSets the FAB widget's distance from the right margin of the app.
Icon SizeChanges the size of FAB icon.
Icon TypeChoose from a list of available icons. The choices are as follows.
(Plus, Top, Right, Bottom, Left, Download, Edit, Delete, Alert, Success)

API Methods

setVisibility

Sets the Visibility flag for this component.

setVisibility(visible: boolean): void

setVisibilityCondition

Sets the visibility condition for this component.

setVisibilityCondition(condition: string): void

Event Handlers

Event handlers allow you to set triggers for various actions based on the fired events. They are as follows:

onClick

onClick - Sets the actions to be triggered when the component is clicked.