Tôi có một nút ExtJS như thế này:ExtJS nút unpress
new Ext.SplitButton({
text: 'Index',
iconCls: 'index',
scale: 'large',
iconAlign: 'left',
cls: 'header-item',
handler: leftPanelNav, // handle a click on the button itself
menu: new Ext.menu.Menu({
items: [
// these items will render as dropdown
// menu items when the arrow is clicked:
{text: 'Item 1'},
{text: 'Item 2'}
]
})
})
nhà nước của ông sẽ được ép vào một thời điểm và tôi muốn biết làm thế nào tôi có thể unpress nó khi tôi muốn từ kịch bản.
Cảm ơn bạn.
nút chia nhỏ chưa được nén trông như thế nào? – Lukman
Có vẻ như trạng thái ban đầu của anh ấy. –