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 with the specified id.
Example
<div id="chiplist"></div>
<script>
var chiplist = $("#chiplist").kendoChipList({
items: [
{ label: "Home", icon: "home", enabled: false, attr: { id: "home" } },
{ label: "Info", icon: "info-circle" },
{ label: "Contact", icon: "envelope" }
]
}).data("kendoChipList");
var home = chiplist.itemById("home");
chiplist.enable(home, true);
</script>