文档半岛外围网上直营>>telerik中文文档>>项目
项目
立即下载Kendo UI for jQuery
该items配置允许您为Breadcrumb项目设置特定属性,可以设置元素的文本和图标并确定它们是否可见,该还可以为初始化组件时呈现的不同元素添加类。
showIcon和showText配置的默认值不同。showIcon的默认值对于rootItem是true,对于item是false。默认情况下,rootitem的showText配置为false, item的配置为true。
以下示例演示了如何通过项目配置设置Breadcrumb项目的属性。<nav id="breadcrumb"></nav>
<script>
$("#breadcrumb").kendoBreadcrumb({
items: [
{ type: "rootitem", href: "mysite.com", text: "Home", icon: "home", showIcon: true, showText: true, itemClass: "root", iconClass: "root", linkClass: "root" },
{ type: "item", href: "/cloud", text: "Cloud", icon: "cloud", showText: false, showIcon: true, itemClass: "cloud", iconClass: "cloud", linkClass: "cloud" },
{ type: "item", href: "/login", text: "Login", icon: "login", showText: true, showIcon: false, itemClass: "login", iconClass: "login", linkClass: "login" }
]
});
</script>

QQ交谈
在线咨询

渝公网安备
50010702500608号

客服热线