Floating action button
Last updated
Was this helpful?
Last updated
Was this helpful?
The Floating action button UI component is positioned above other page content and triggers an action. It shares similarities with the and components. A Floating action button can have an icon and optional text and is more visually emphasized than other button types. It is recommended to use a Floating action button for the main action on a page/view.
A common use case is to position the button in the bottom corner of the screen, for example if you have a table listing all active users, a Floating action button can be placed under the table which runs an action to add a new user to the app.
As with all buttons, the On Click event handler can be used to connect the component to an action, and every time a user clicks the button, the action will be triggered.
Here are some properties in Appfarm Create which are configurable for a Floating action button:
Icons can be connected to the button. These can make the button more intuitive, by using symbols instead of words.
With this property enabled, you can add an optional label to the button.
If the button's appearance should differ depending on a condition which can change over time, then using Conditional Properties is recommended. The properties, and conditions for when they should override the given default, are defined in this section.
Actions can be configured here, and these are run each time the button is clicked.