collapse

Fires when the speed-dial popup is closed and its animation is finished.

**Note: this event is triggered only when using items configuration.

Event Data

e.sender kendo.ui.FloatingActionButton

The FloatingActionButton instance that triggered the event.

Example

<button id="fab"></button>

<script>
    var fab = $('#fab').kendoFloatingActionButton({
        text: 'Actions',
        items: [{
            icon: 'print',
            title: 'print action title',
/* The result can be observed in the DevTools(F12) console of the browser. */
            click: function() { console.log('print action'); }
        }],
        collapse: function() {
/* The result can be observed in the DevTools(F12) console of the browser. */
            console.log('collapse event triggered');
        }
    }).getKendoFloatingActionButton();

    fab.element.trigger("click");
</script>
In this article