Controlling the Open State
The FloatingActionButton enables you to control the state of its Dial items list and provides options for:
You can also retrieve the current open state of the FloatingActionButton Dial items by using the isOpen getter.
You can enable the user to manually toggle between the open and close state of the Dial items list by invoking the toggleDial method with a boolean argument that determines the desired state. To open the Dial items list, call the
toggleDIal method with
true, and to close the list, call the method with
The following example demonstrates how to configure an initially opened FloatingActionButton.
The following example demonstrates how to prevent the closing of the Dial items list.