Edit

Our Kanban Task Board for easy management of tasks and agile workflows
Post Reply
User avatar
bklusek
Posts: 7
Joined: Mon Jan 28, 2019 1:25 pm

Edit

Post by bklusek » Tue Feb 05, 2019 7:14 pm

05-02-2019 18-08-23.png
05-02-2019 18-08-23.png (19.43 KiB) Viewed 189 times
Hi, how can I disable the Edit function?

User avatar
mats
Core Developer
Core Developer
Posts: 14259
Joined: Sat Dec 19, 2009 11:41 pm
Location: Sweden
Contact:

Re: Edit

Post by mats » Tue Feb 05, 2019 9:13 pm

You can either set 'defaultActions' to false, to remove our default options, and implement what you need yourself. Or listen to 'beforeshow' event and query the menu using the 'action' property:

Default items in the menu:

Code: Select all

            this.items = this.items.concat([
                {
                    action  : 'edit',
                    text    : this.L('edit'),
                    handler : this.onEditClick,
                    scope   : this
                },
                {
                    action : 'assign',
                    text   : this.L('users'),
                    menu   : this.userMenu
                },
                {
                    action : 'setState',
                    text   : this.L('states'),
                    menu   : this.stateMenu
                },
                {
                    action  : 'copy',
                    text    : this.L('copy'),
                    handler : this.onCopyClick,
                    scope   : this
                },
                {
                    action  : 'remove',
                    text    : this.L('remove'),
                    handler : this.onRemoveClick,
                    scope   : this
                }
            ]);
Docs: https://bryntum.com/docs/taskboard-for- ... u.TaskMenu
Tired of debugging javascript errors in web applications? Try our new error logging service RootCause, or read more on the Sencha blog

@bryntum
Facebook
API documentation

Post Reply