項目
立即下載Kendo UI for jQuery
該items配置允許您設(shè)置底部導(dǎo)航項目的特定屬性,可以設(shè)置它們的文本(可選)和圖標,為初始化組件時呈現(xiàn)的不同項目添加類,設(shè)置項目的選定和啟用狀態(tài)。
注意:設(shè)置items.url配置后,項目將呈現(xiàn)為<a>標簽。否則,它們將被呈現(xiàn)為<span>標簽。
以下示例演示了BottomNavigation 組件的項目配置的可能選項:
<nav id="bottomNavigation"></nav>
<script>
$(document).ready(function () {
var itemTemplate = '<span class="k-bottom-nav-item-icon k-icon k-i-calendar-date"></span>';
$("#bottomNavigation").kendoBottomNavigation({
items: [
{ data: { view: "home" }, url: "#home", icon: "home", enabled:false, cssClass: "custom-css-class", text: "<strong>Home</strong>", encoded:false },
{ data: { view: "calendar" }, url: "#calendar", template: itemTemplate, cssClass: "custom-css-class", text: "<emp>Calendar</emp>", encoded:false },
{ data: { view: "profile" }, url: "#profile", icon: "user", cssClass: "custom-css-class", text: "Profile", selected: true }
]
});
})
</script>

 QQ交談
QQ交談 在線咨詢
在線咨詢 
                 
                
 渝公網(wǎng)安備
            50010702500608號
渝公網(wǎng)安備
            50010702500608號
             
            
 客服熱線
客服熱線