1
我有兩個問題我找不到答案;主要基於以下Kendo Toolbar獲取按鈕的狀態並重置爲加載狀態
:
$("#toolbar").kendoToolBar({
items: [
{
type: "buttonGroup",
id: "FilterControls",
buttons: [
{ id: "const", text: "Construction", spriteCssClass: "k-icon k-i-funnel", togglable: true, group: "filter", toggle: filterToggleHandler},
{ id: "lease", text: "Leasing", spriteCssClass: "k-icon k-i-funnel", togglable: true, group: "filter", toggle: filterToggleHandler },
{ id: "legal", text: "Legal", spriteCssClass: "k-icon k-i-funnel", togglable: true, group: "filter", toggle: filterToggleHandler },
{ id: "propt", text: "Property Management", spriteCssClass: "k-icon k-i-funnel", togglable: true, group: "filter", toggle: filterToggleHandler }
]
},
{ id: "mygreens", type: "button", text: "My Greens", spriteCssClass: "k-icon k-i-funnel", togglable: true, toggle: myToggleHandler },
{ id: "clear", type: "button", text: "Clear", icon: "funnel-clear", click: filtClearall, togglable: false },
{ is: "close", type: "button", text: "Close", spriteCssClass: "k-icon k-i-close", click: retOzone, togglable: false },
],
});
首先是如何從過濾器組的觸發事件,我可以告訴mygreens狀態的toogle按鈕
,其次我該怎麼辦重置工具欄返回到其初始狀態,沒有選擇按鈕,基於按鈕清除點擊 乾杯
非常感謝這真的幫了我 –