TaskBoardDom

Properties

2
isTaskBoardDom: Boolean= truereadonly
Identifies an object as an instance of TaskBoardDom class, or subclass thereof.
isTaskBoardDom: Boolean= truereadonlystatic
Identifies an object as an instance of TaskBoardDom class, or subclass thereof.

Functions

11

Retrieves the element for the supplied column.

Only applicable when not using swimlanes. If you are using swimlanes, see getColumnElements.

ParameterTypeDescription
columnRecordColumnModel
Returns: HTMLElement

Retrieves the elements for the supplied column. When using swimlanes, a column has one element per swimlane.

ParameterTypeDescription
columnRecordColumnModel
Returns: HTMLElement

Retrieves the header element for the supplied column.

ParameterTypeDescription
columnRecordColumnModel
Returns: HTMLElement

Retrieves the element for the supplied swimlane / column intersection.

const element = taskBoard.getSwimlaneColumnElement(taskBoard.swimlanes.first, taskBoard.columns.last);
ParameterTypeDescription
swimlaneRecordSwimlaneModel
columnRecordColumnModel
Returns: HTMLElement

Retrieves the element for the supplied swimlane.

const swimlaneElement = taskBoard.getSwimlaneElement(taskBoard.swimlanes.first);
ParameterTypeDescription
swimlaneRecordSwimlaneModel
Returns: HTMLElement

Retrieves the element for the column that holds the supplied task record.

const columnElement = taskBoard.getColumnElement(taskRecord);
ParameterTypeDescription
taskRecordTaskModel
Returns: HTMLElement

Retrieves the task element (card) corresponding to the supplied task record.

const cardElement = taskBoard.getTaskElement(taskRecord);
ParameterTypeDescription
taskRecordTaskModel
Returns: HTMLElement

Retrieves the element for the swimlane that holds the supplied task record.

const swimlaneElement = taskBoard.getTaskSwimlaneElement(taskRecord);
ParameterTypeDescription
taskRecordTaskModel
Returns: HTMLElement

Retrieves a column record resolved from the supplied element. Has to be a .b-task-board-column element or descendant thereof (such as a card).

const columnRecord = taskBoard.resolveColumnRecord(taskElement);
ParameterTypeDescription
elementHTMLElement
Returns: ColumnModel

Retrieves a swimlane record resolved from the supplied element. Has to be a .b-task-board-swimlane element or descendant thereof.

const swimlaneRecord = taskBoard.resolveSwimlaneRecord(taskElement);
ParameterTypeDescription
elementHTMLElement
Returns: SwimlaneModel

Retrieves a task record corresponding to the supplied element. Has to be a .b-task-board-card element or descendant thereof.

const taskRecord = taskBoard.resolveTaskRecord(taskElement);
ParameterTypeDescription
elementHTMLElement
Returns: TaskModel