开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜