文檔金喜正規買球>>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>