v7.3.0

TaskBoardDomEvents
Mixin

Mixin that handles dom events (click etc.) for the TaskBoard and its columns and cards.

Demo that uses taskClick and resourceAvatarClick listeners:

Snippet showing two ways to add listeners:

// Listener defined as part of config
const taskBoard = new TaskBoard({
    listeners : {
       taskClick({ taskRecord }) {
           Toast.show(`Clicked on ${taskRecord.name}`);
       }
    }
});

// Listener added at runtime taskBoard.on('taskDblClick', ({ taskRecord }) => { ... });
No results

Configs

Configs are options you supply in a configuration object when creating an instance of this class
  • activateTaskEvent : 'taskClick'/'taskDblClick'/nulltaskDblClick

    The name of the event that should activate a task and trigger editing (if an editing feature is active). Available options are: 'taskClick', 'taskDblClick' or null (disable)

Properties

Properties are getters/setters or publicly accessible variables on this class

Events

Events are triggered for certain actions in this class and can be listened for to react to those actions in your code

Event handlers

Event handlers are callbacks called as a result of certain actions in this class

Source path

TaskBoard/view/mixin/TaskBoardDomEvents.js

Contents