Our flexible Kanban board for managing tasks with drag drop


Post by licjapodaca »

Hi there, how to disable the TaskMenu on right click over a task card?

I want only appears the TaskMenu when I click on ellipsis like so:

ellipsis.png
ellipsis.png (128.92 KiB) Viewed 1760 times

Regards


Post by alex.l »

Try this:

const taskBoard = new TaskBoard({
    features : {
        taskMenu : false
    }
    

https://bryntum.com/docs/taskboard/#TaskBoard/guides/basics/features.md

All the best,
Alex


Post by licjapodaca »

But if I do that the 3 dots ellipsis disappears from the header of the task, I want to continue use the menu clicking over the 3 dots ellipsis but I don't want to appear the menu when I do a right click over a task card...

Regards


Post by Maxim Gorkovsky »

triggerEvent is supposed to handle this behavior, but it doesn't work in the current release. I've opened a ticket to make this configurable: https://github.com/bryntum/support/issues/3399 Thank you for report.

For now you can try disabling menu with this config:

features : {
  taskMenu : { onTaskContextMenu : () => {} }
}

Post by licjapodaca »

Hi @Maxim, the workaround works, thanks ...

Regards


Post by licjapodaca »

This fix doesn't work anymore in v4.2.6:

features : {
  taskMenu : { onTaskContextMenu : () => {} }
}

What is the new way to disable right click context menu over the cards in v4.2.6?

Regards


Post by mats »

After every release, there is a changelog - you should read it always to know what changed. It includes:

* TaskMenu now has a configurable triggerEvent allowing you to define which event (if any) should trigger it
(Fixed #3399)

Docs: https://www.bryntum.com/docs/taskboard/#TaskBoard/feature/TaskMenu#config-triggerEvent


Post by licjapodaca »

Ok @mats, founded, thanks:

...
features: {
   taskMenu: {
      ...
      triggerEvent: 'click'
      ...
   }
}

Regards


Post Reply