TaskItem
Abstract base class for task items, lightweight "widgets" that can be added to tasks using the headerItems, bodyItems and footerItems configs.
Configs
6
Configs
6CSS class to add.
Widget type or config to use as the editor for this item. Used in the inline task editor.
Set to null to not use an editor for this item.
Task field whose value item will act on (usually display it). Defaults to use the key in the items object.
const taskBoard = new TaskBoard({
features : {
taskItems : {
items : {
// Will use "prio" as its field
prio : { type : 'textitem' },
// Will use "status" as its field
state : { type : 'textitem', field : 'status' }
}
}
}
});
Flex order, can be used to re-order task items.
Style definition in string or object form.
const taskBoard = new TaskBoard({
features : {
taskItems : {
items : {
prio : { type : 'textitem', style : { color : 'red' } }
}
}
}
});
Typedefs
1
Typedefs
1Config options for all TaskItems combined. See respective item classes for more information.
| Parameter | Type | Description |
|---|---|---|
type | String | Type of the item |
field | String | Field to display in the item. Usually inferred from the key when supplying items |
style | String | Object | Style definition in string or object form |
cls | String | CSS class to add |
order | Number | Flex order, can be used to re-order task items |
hidden | Boolean | Specify |
editor | String | Object | Widget type or config to use as the editor for this item. Used in the inline task
editor. Set to |
baseUrl | String | For |
template | function | For |
template.value | * | Data value passed for |
template.taskRecord | TaskModel | Task record passed for |
template.returns | String | Return value for |
max | Number | For |
textField | String | For |
checkedField | String | For |
clsField | String | For |
maxAvatars | Number | For |
overlap | Boolean | For |
textProperty | String | For |
clsProperty | String | For |
separator | String | For |
jsx | * | React Element (JSX) |