FloatingActionButton JSP Tag Overview

The FloatingActionButton JSP tag is a server-side wrapper for the Kendo UI FloatingActionButton widget.

Getting Started


The FloatingActionButton provides a set of default API configuration options that can be set during its initialization such as size, shape, themeColor, align, positionMode, and so on. Below are listed the steps for you to follow when configuring the Kendo UI FloatingActionButton for JSP.

Step 1 Make sure you followed all the steps from the introductory article on Telerik UI for JSP.

Step 2 Create a new action method to render the view.

    @RequestMapping(value = {"index"}, method = RequestMethod.GET)
    public String index() {

        return "web/floatingactionbutton/index";

Step 3 Add the Kendo UI taglib mapping to the page.

    <%@taglib prefix="kendo" uri="https://www.telerik.com/kendo-ui/jsp/tags"%>

Step 4 Add the floatingActionButton tag and configure the component.

    <kendo:floatingActionButton name="fab"
        text="Add To Cart"


The Kendo UI FloatingActionButton exposes the align,alignOffset and positionMode configuration options. These three options work in conjunction allowing you to position the FloatingActionButton component precisely as per the application requirements. The example below demonstrates how to configure the alignment and positioning of the FloatingActionButton

    <kendo:floatingActionButton name="fab"
        positionMode="fixed" //positions the button relative to the viewport
        align="top end">
        <kendo:floatingActionButton-alignOffset x="50" y="80"></kendo:floatingActionButton-alignOffset>


The Kendo UI FloatingActionButton for JSP allows you to customize the appearance of the component by setting the size, shape, color, icon and text of the FloatingActionButton. Following the Material Design guidelines we advise when configuring the FloatingActionButton to display additional related actions or "speed dial actions" to set only the icon option for the button and use labels to dispay additional information for the related actions, if needed. Alternatively, if you would like to have an icon and text for the Kendo UI FloatingActionButton consider omitting the display of additional actions. The example below demonstrates how to configure the speed dial action items of the FloatingActionButton:

    <kendo:floatingActionButton name="fab"
        align="bottom end"
            <kendo:floatingActionButton-item icon="envelop" label="Email" click="onItemClick"></kendo:floatingActionButton-item>
            <kendo:floatingActionButton-item icon="twitter" label="Twitter" click="onItemClick"></kendo:floatingActionButton-item>

        function onItemClick(e) {
            console.log(e.item.label + " clicked");

Event Handling

Subscribe to Events

You can subscribe to all events exposed by Kendo UI FloatingActionButton by the handler name.

<kendo:floatingActionButton name="fab" click="floatingactionbutton_click"></kendo:floatingActionButton>

    function floatingactionbutton_click() {
        // Handle the click event


Existing Instances

You are able to reference an existing FloatingActionButton instance via the jQuery.data(). Once a reference is established, you are able to use the FloatingActionButton API to control its behavior.

<kendo:floatingActionButton name="fab"</kendo:floatingActionButton>

// Put this after your Kendo FloatingActionButton tag declaration
$(function() {
    // Notice that the Name() of the floatingactionbutton is used to get its client-side instance
    var floatingactionbutton = $("#fab").data("kendoFloatingActionButton");

See Also

In this article