v7.3.0

SwimlaneModel

Represents a single swimlane on a TaskBoard.

When creating a TaskBoard, you can optionally supply an initial set of swimlanes. These are either defined as plain strings, SwimlaneModel data objects or SwimlaneModel records (or a mix thereof). When using strings, the string will be used as is as the swimlane's id and capitalized as its text.

const highPrio = new SwimlaneModel({
    id   : 'high',
    text : 'High prio'
});

const taskBoard = new TaskBoard({ swimlanes : [ // String, equal to passing { id : 'low', text : 'Low' } 'low', // Data object, in this case with a fixed height and not collapsible from the UI { id : 'medium', text : 'Medium', height : 200, collapsible : false } // Record, not commonly used since it is easier to supply the data object directly highPrio ] });
No results

Fields

Fields belong to a Model class and define the Model data structure
  • Allow collapsing this swimlane

  • Swimlane flex, affects height.

  • Swimlane height in px.

  • Set to true to hide the swimlane, false to show it again.

  • The swimlane's unique id, used to match a task to a swimlane (which field on a task to match is specified using then swimlaneField config on TaskBoard).

  • Number of tasks per row to display in this swimlane. Leave blank to use the setting from the tasksPerRow config on TaskBoard.

  • Text displayed in the swimlane header.

Properties

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

Functions

Functions are methods available for calling on the class

    Source path

    TaskBoard/model/SwimlaneModel.js

    Contents