Gandalf
Gandalf

Reputation: 13683

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({
            //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.

Upvotes: 2

Views: 1042

Answers (1)

Robby Pond
Robby Pond

Reputation: 73484

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

Upvotes: 3

Related Questions