TaskBoardDom
Properties
2
Properties
2Functions
11
Functions
11Retrieves the element for the supplied column.
Only applicable when not using swimlanes. If you are using swimlanes, see getColumnElements.
| Parameter | Type | Description |
|---|---|---|
columnRecord | ColumnModel |
Retrieves the elements for the supplied column. When using swimlanes, a column has one element per swimlane.
| Parameter | Type | Description |
|---|---|---|
columnRecord | ColumnModel |
Retrieves the header element for the supplied column.
| Parameter | Type | Description |
|---|---|---|
columnRecord | ColumnModel |
Retrieves the element for the supplied swimlane / column intersection.
const element = taskBoard.getSwimlaneColumnElement(taskBoard.swimlanes.first, taskBoard.columns.last);
| Parameter | Type | Description |
|---|---|---|
swimlaneRecord | SwimlaneModel | |
columnRecord | ColumnModel |
Retrieves the element for the supplied swimlane.
const swimlaneElement = taskBoard.getSwimlaneElement(taskBoard.swimlanes.first);
| Parameter | Type | Description |
|---|---|---|
swimlaneRecord | SwimlaneModel |
Retrieves the element for the column that holds the supplied task record.
const columnElement = taskBoard.getColumnElement(taskRecord);
| Parameter | Type | Description |
|---|---|---|
taskRecord | TaskModel |
Retrieves the task element (card) corresponding to the supplied task record.
const cardElement = taskBoard.getTaskElement(taskRecord);
| Parameter | Type | Description |
|---|---|---|
taskRecord | TaskModel |
Retrieves the element for the swimlane that holds the supplied task record.
const swimlaneElement = taskBoard.getTaskSwimlaneElement(taskRecord);
| Parameter | Type | Description |
|---|---|---|
taskRecord | TaskModel |
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);
| Parameter | Type | Description |
|---|---|---|
element | HTMLElement |
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);
| Parameter | Type | Description |
|---|---|---|
element | HTMLElement |
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);
| Parameter | Type | Description |
|---|---|---|
element | HTMLElement |