# FloatingActionButton Open State

The FloatingActionButton enables you to control the state of its Dial items list from your application. The component has no declarative input for the open state. Instead, it provides the [`toggleDial`](https://www.telerik.com/kendo-angular-ui/components/buttons/api/floatingactionbuttoncomponent#toggledial) method and the [`isOpen`](https://www.telerik.com/kendo-angular-ui/components/buttons/api/floatingactionbuttoncomponent#isopen) getter, and it raises preventable [`open`](https://www.telerik.com/kendo-angular-ui/components/buttons/api/floatingactionbuttoncomponent#open) and [`close`](https://www.telerik.com/kendo-angular-ui/components/buttons/api/floatingactionbuttoncomponent#close) events when user interaction changes the state.

The component provides the following options for:

* [Configuring the initial state](https://www.telerik.com/kendo-angular-ui/components/buttons/floatingactionbutton/open_state#configuring-the-initial-state)
* [Preventing opening and closing](https://www.telerik.com/kendo-angular-ui/components/buttons/floatingactionbutton/open_state#preventing-opening-and-closing)

## Configuring the Initial State

Call the [`toggleDial`](https://www.telerik.com/kendo-angular-ui/components/buttons/api/floatingactionbuttoncomponent#toggledial) method with a Boolean argument to set the state of the Dial items list. Pass `true` to open the list and `false` to close it. The method has no effect when the component is disabled or has no dial items. The [`isOpen`](https://www.telerik.com/kendo-angular-ui/components/buttons/api/floatingactionbuttoncomponent#isopen) getter returns the current state. Calls to `toggleDial` do not emit the `open` or `close` events.

The following demo opens the Dial items list after the component initializes.

[Demo Source](https://demos.telerik.com/kendo-angular-ui/demos/buttons/floatingactionbutton/open_state/initial_open_state/source.txt)

## Preventing Opening and Closing

The [`open`](https://www.telerik.com/kendo-angular-ui/components/buttons/api/floatingactionbuttoncomponent#open) and [`close`](https://www.telerik.com/kendo-angular-ui/components/buttons/api/floatingactionbuttoncomponent#close) events fire before the Dial items list opens or closes through user interaction. To prevent the corresponding action, call the `preventDefault` method of the event argument.

These events do not fire when you open or close the list by calling `toggleDial`.

The following demo prevents the Dial items list from closing.

[Demo Source](https://demos.telerik.com/kendo-angular-ui/demos/buttons/floatingactionbutton/open_state/prevent_open_close_events/source.txt)

## Suggested Links

* [FloatingActionButton Speed Dial](https://www.telerik.com/kendo-angular-ui/components/buttons/floatingactionbutton/speed_dial)
* [FloatingActionButton Events](https://www.telerik.com/kendo-angular-ui/components/buttons/floatingactionbutton/events)
* [API Reference of the FloatingActionButton](https://www.telerik.com/kendo-angular-ui/components/buttons/api/floatingactionbuttoncomponent)
