ColumnCombo
A combo populated with the columns of a TaskBoard.
If a column has a color defined, that color will be displayed in the combo and its picker.
If your app uses a "catch-all" column (a
column with its id set to *), it can be excluded from the combo by setting the excludeCatchAll
config to true. By using the includeAllColumnValues, you can make the combo include all column
values from the tasks, even those that are not defined in the TaskBoard.
Used in TaskEditor to pick which column a task belongs to ("Status" below):
//<code-header>
fiddle.title = 'Column combo';
//</code-header>
const taskBoard = new TaskBoard({
appendTo : targetElement,
features : {
columnToolbars : false,
taskEdit : {
editorConfig : {
modal : false,
centered : false,
constrainTo : targetElement
},
items : {
description : null,
resources : null,
color : null
}
}
},
// Swimlanes to display
swimlanes : [
{ id : 'high', text : 'High', color : 'red' },
{ id : 'medium', text : 'Medium', color : 'yellow' },
{ id : 'low', text : 'Low', color : 'green' }
],
// Field used to pair a task to a swimlane
swimlaneField : 'prio',
// Columns to display
columns : [
{ id : 'todo', text : 'Todo', color : 'orange' },
{ id : 'doing', text : 'Doing', color : 'blue' },
{ id : 'done', text : 'Done', color : 'green' }
],
// Field used to pair a task to a column
columnField : 'status',
// Project using inline data
project : {
tasks : [
{ id : 1, name : 'Task 1', status : 'doing', prio : 'low' },
{ id : 2, name : 'Task 2', status : 'done', prio : 'medium' },
{ id : 3, name : 'Task 3', status : 'done', prio : 'high' },
{ id : 4, name : 'Task 4', status : 'todo', prio : 'low' },
{ id : 5, name : 'Task 5', status : 'todo', prio : 'medium' }
]
},
listeners : {
initialCompose() {
taskBoard.editTask(taskBoard.project.taskStore.first);
}
}
});Configs
148
Configs
148Other
By default, the combo will show a configured "catch-all" column (a column with its id set to *). In
some cases, e.g. when used in a task editor, you may want to exclude that column from the combo.
Only applies when using a "catch-all" column (a column with its id set to *). By default, the combo will
include only the columns defined in the TaskBoard. With this config you can opt to include all column values
from the tasks, even those that are not defined in the TaskBoard.
DOM
Float & align
Input element
Label
Layout
Misc
Scrolling
Properties
101
Properties
101Class hierarchy
Other
By default, the combo will show a configured "catch-all" column (a column with its id set to *). In
some cases, e.g. when used in a task editor, you may want to exclude that column from the combo.
Only applies when using a "catch-all" column (a column with its id set to *). By default, the combo will
include only the columns defined in the TaskBoard. With this config you can opt to include all column values
from the tasks, even those that are not defined in the TaskBoard.
The store used by the combo to populate its items, automatically chained of the TaskBoard columns store.