开发者

Choosing to display or not to display a menu item in ExtJS

开发者 https://www.devze.com 2023-02-11 09:50 出处:网络
Is there a way i can choose to include or leave out a menu item in ExtJS?. var actions = { newTask: new Ext.Action({

Is there a way i can choose to include or leave out a menu item in ExtJS?.

var actions = {
        newTask: new Ext.Action({
         开发者_Python百科   //text_field_display: true,
            text: 'New Task',
            iconCls: 'icon-active',
            tooltip: 'New Task',
            handler: function(){
                taskHeader.ntTitle.focus();
            }
        }),

The text_field_display is just an example and not something you will find in the API.


You can use the hidden property to hide any component that uses that action.

0

精彩评论

暂无评论...
验证码 换一张
取 消