文檔首頁>>telerik中文文檔>>項(xiàng)目
項(xiàng)目
立即下載Kendo UI for jQuery
該items配置允許您為Breadcrumb項(xiàng)目設(shè)置特定屬性,可以設(shè)置元素的文本和圖標(biāo)并確定它們是否可見,該還可以為初始化組件時(shí)呈現(xiàn)的不同元素添加類。
showIcon和showText配置的默認(rèn)值不同。showIcon的默認(rèn)值對(duì)于rootItem是true,對(duì)于item是false。默認(rèn)情況下,rootitem的showText配置為false, item的配置為true。
以下示例演示了如何通過項(xiàng)目配置設(shè)置Breadcrumb項(xiàng)目的屬性。<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>