itemById

Get item's element by id (can be set via items.attributes).

Parameters

id String (required)

The id of the item.

Returns

jQuery the found item at the specified index.

Example

<nav id="bottomnav"></nav>

<script>
    var bottomNav = $("#bottomnav").kendoBottomNavigation({
        items: [
            { text: "Home", icon: "home", enabled: false, attr: { id: "home" } },
            { text: "Info", icon: "info" },
            { text: "Contact", icon: "email" }
        ]
    }).data("kendoBottomNavigation");

    var home = bottomNav.itemById("home");
    bottomNav.enable(home, true);
</script>
In this article
Not finding the help you need? Improve this article