ProgressItem
Item displaying a progress bar.
Progress is determined by the value of the configured field. A max value (defaults to 100) can be configured using the max config.
Progress item
//<code-header>
fiddle.title = 'Progress item';
//</code-header>
const taskBoard = new TaskBoard({
appendTo : targetElement,
features : {
columnToolbars : false
},
bodyItems : {
progress : {
type : 'progress',
max : 100
}
},
columns : [
{ id : 'todo', text : 'Todo', color : 'blue' },
{ id : 'doing', text : 'Doing', color : 'orange' },
{ id : 'done', text : 'Done', color : 'green' }
],
columnField : 'status',
project : {
tasks : [
{
id : 1,
name : 'Learn Angular',
status : 'doing',
progress : 40
},
{
id : 2,
name : 'Learn React',
status : 'done',
progress : 100
},
{
id : 3,
name : 'Learn Vue',
status : 'todo',
progress : 10
}
]
}
});Configs
7
Configs
7Widget type or config to use as the editor for this item. Used in the inline task editor.
ProgressItems are un-editable by default.
Max value, at which the bar is full.
const taskBoard = new TaskBoard({
bodyItems : {
progress : { type : 'progress', max : 10 }
},
project : {
tasks : [
{ id : 1, name : 'Task #1', progress : 9 }
]
}
});
// Task #1 bar is 9/10 filled
clsTaskItem
fieldTaskItem
hiddenTaskItem
orderTaskItem
styleTaskItem
Properties
2
Properties
2Identifies an object as an instance of ProgressItem class, or subclass thereof.
Identifies an object as an instance of ProgressItem class, or subclass thereof.
Typedefs
1
Typedefs
1TaskItemOptionsTaskItem
CSS variables
5
CSS variables
5| Name | Description |
|---|---|
--b-task-board-progress-item-background | Background for the unfilled part of the progress bar |
--b-task-board-progress-item-height | Height of the progress bar |
--b-task-board-progress-item-border | Border for the progress bar |
--b-task-board-progress-item-border-radius | Border radius for the progress bar |
--b-task-board-progress-item-color | Color for the filled part of the progress bar |