Request new features or modifications


Post by GloriaS »

It would be great if Gnt.plugin.TaskContextMenu had configuration options so that we could decide which options to show to the user. Currently, it relies on the task details such as task is readonly etc. We end up having to override the entire createMenuItems method, copy only the relevant bits (with references to private methods!) and just show that.

For example, it would be nice if we could specify:
new Gnt.plugin.TaskContextMenu({
	showDeleteTask: true,
	showEditLeftLabel: false,
	showEditRightLabel: false,
	showSplitTask: true,
	showDeleteDependency: true,
	...
})
This is different from isMenuOptionEnabled:
https://www.bryntum.com/docs/scheduling ... ionEnabled

in that we are not interested in disabling the menu option; rather removing it completely from view.

Thanks

Post by mats »

Try something like this, not too much work.
Ext.define('MyProject.plugin.TaskContextMenu', {
        extend     : 'Gnt.plugin.TaskContextMenu',

        initComponent : function () {
            this.callParent(arguments);

            this.down('#deleteTask').hide();
        }
    });

Post by sweetsweapon »

ok, thanks for your help, I will try it.
flappy bird


Post by lauryfriese »

Great everything here works fine.Thanks so much. Run 3


Post Reply