Specific API Reference

Kanban board is a view based on Layout and DataStore and it supports their methods, properties and events. However, there are two specific methods in Kanban:

  • getOwnerList - gets List that displays an item
  • eachList - calls a function for each list in Kanban board

getOwnerList

Method returns KanbanList view that displays an item

var list = $$("myBoard").getOwnerList("task1");

parameters:

  • itemId - {string} the item's id

eachList

Iterates over all lists in Kanban and calls a function for them

$$("myBoard").eachList(function(list,status){
   if(list){
      list.define("type","edit");
      list.render();
   } 
});

parameters:

  • function - a function that will be called for each Kanban list, takes two arguments:
    • list - KanbanList object
    • status - the list's status
Back to top