ExpandCollapse

Configs

3

Common

showCollapseInHeader: Boolean= true

Show an icon to expand/collapse columns and swimlanes in their headers.

Programmatic expand/collapse works independently of this setting, it only affects the UI.

Misc

collapseTitle: Boolean= false

Specify true to hide the column title instead of rotating it on collapse.

Used by default with swimlanes, since the title will overlap the swimlane header otherwise.

By default, a tooltip showing Expand XX/Collapse XX is shown when hovering the expand/collapse icon for a column or swimlane. To disable the tooltip, set this to false.

Properties

3

Class hierarchy

isExpandCollapse: Boolean= truereadonly
Identifies an object as an instance of ExpandCollapse class, or subclass thereof.
isExpandCollapse: Boolean= truereadonlystatic
Identifies an object as an instance of ExpandCollapse class, or subclass thereof.

Misc

By default, a tooltip showing Expand XX/Collapse XX is shown when hovering the expand/collapse icon for a column or swimlane. To disable the tooltip, set this to false.

Functions

3

Collapse a swimlane or column.

Await the call to be certain that the collapse transition has ended.

await taskBoard.collapse(taskBoard.columns.first);
ParameterTypeDescription
recordSwimlaneModel | ColumnModel

Swimlane or column

Expand a swimlane or column.

Await the call to be certain that the expand transition has ended.

await taskBoard.expand(taskBoard.columns.first);
ParameterTypeDescription
recordSwimlaneModel | ColumnModel

Swimlane or column

Expand or collapse a swimlane or column.

Await the call to be certain that the expand/collapse transition has ended.

// Toggle
await taskBoard.toggleCollapse(taskBoard.columns.first);
// Force collapse
await taskBoard.toggleCollapse(taskBoard.columns.first, true);
// Force expand
await taskBoard.toggleCollapse(taskBoard.columns.first, false);
ParameterTypeDescription
recordSwimlaneModel | ColumnModel

Swimlane or column

collapseBoolean

Specify to force a certain state, leave out to toggle

Events

6

Triggered when a column is collapsed.

// Adding a listener using the "on" method
expandCollapse.on('columnCollapse', ({ source, columnRecord }) => {

});
ParameterTypeDescription
sourceTaskBoard

This TaskBoard

columnRecordColumnModel

Column record

Triggered when a column is expanded.

// Adding a listener using the "on" method
expandCollapse.on('columnExpand', ({ source, columnRecord }) => {

});
ParameterTypeDescription
sourceTaskBoard

This TaskBoard

columnRecordColumnModel

Column record

Triggered when the column collapsed state is toggled.

// Adding a listener using the "on" method
expandCollapse.on('columnToggle', ({ source, columnRecord, collapse }) => {

});
ParameterTypeDescription
sourceTaskBoard

This TaskBoard

columnRecordColumnModel

Column record

collapseBoolean

true if the column is being collapsed.

Triggered when a swimlane is collapsed.

// Adding a listener using the "on" method
expandCollapse.on('swimlaneCollapse', ({ source, swimlaneRecord }) => {

});
ParameterTypeDescription
sourceTaskBoard

This TaskBoard

swimlaneRecordSwimlaneModel

Swimlane record

Triggered when a swimlane is expanded.

// Adding a listener using the "on" method
expandCollapse.on('swimlaneExpand', ({ source, swimlaneRecord }) => {

});
ParameterTypeDescription
sourceTaskBoard

This TaskBoard

swimlaneRecordSwimlaneModel

Swimlane record

Triggered when the swimlane collapsed state is toggled.

// Adding a listener using the "on" method
expandCollapse.on('swimlaneToggle', ({ source, swimlaneRecord, collapse }) => {

});
ParameterTypeDescription
sourceTaskBoard

This TaskBoard

swimlaneRecordSwimlaneModel

Swimlane record

collapseBoolean

true if the column is being collapsed.

Event handlers

6

Called when a column is collapsed.

new ExpandCollapse({
    onColumnCollapse({ source, columnRecord }) {

    }
});
ParameterTypeDescription
sourceTaskBoard

This TaskBoard

columnRecordColumnModel

Column record

Called when a column is expanded.

new ExpandCollapse({
    onColumnExpand({ source, columnRecord }) {

    }
});
ParameterTypeDescription
sourceTaskBoard

This TaskBoard

columnRecordColumnModel

Column record

Called when the column collapsed state is toggled.

new ExpandCollapse({
    onColumnToggle({ source, columnRecord, collapse }) {

    }
});
ParameterTypeDescription
sourceTaskBoard

This TaskBoard

columnRecordColumnModel

Column record

collapseBoolean

true if the column is being collapsed.

Called when a swimlane is collapsed.

new ExpandCollapse({
    onSwimlaneCollapse({ source, swimlaneRecord }) {

    }
});
ParameterTypeDescription
sourceTaskBoard

This TaskBoard

swimlaneRecordSwimlaneModel

Swimlane record

Called when a swimlane is expanded.

new ExpandCollapse({
    onSwimlaneExpand({ source, swimlaneRecord }) {

    }
});
ParameterTypeDescription
sourceTaskBoard

This TaskBoard

swimlaneRecordSwimlaneModel

Swimlane record

Called when the swimlane collapsed state is toggled.

new ExpandCollapse({
    onSwimlaneToggle({ source, swimlaneRecord, collapse }) {

    }
});
ParameterTypeDescription
sourceTaskBoard

This TaskBoard

swimlaneRecordSwimlaneModel

Swimlane record

collapseBoolean

true if the column is being collapsed.