Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个按钮定义为 xtype: button,
单击记录时,我需要将 xtype 更改为 Splitbutton 并根据从数据库返回的数据为其添加一个菜单。
如何才能做到这一点?
我试过了:
Ext.GetCmp(buttonid).xtype = 'splitbutton'
但它不起作用。