Methods
# static getColor(task, colorHolder, componentType) → {string}
Gets color from task status based color holder
Parameters:
Name | Type | Description |
---|---|---|
task |
ITask | task |
colorHolder |
TaskChannelDefinition.TaskStatusBasedType.<string> | task status based template |
componentType |
React.ComponentType | component that is calling the method |
if colorHolder argument is not provided
Error
color code
string
# static getIcon(task, iconHolder, componentType) → {string|React.ReactNode}
Gets icon from task status based icon holder
Parameters:
Name | Type | Description |
---|---|---|
task |
ITask | task |
iconHolder |
TaskChannelDefinition.TaskStatusBasedType.<(string|React.ReactNode)> | task status based icon |
componentType |
React.ComponentType | component that is calling the method |
if iconHolder argument is not provided
Error
icon code as string or ReactNode to be rendered as icon
string
|
React.ReactNode
# static getTemplateForStatus(task, templateHolder, componentType) → {string}
Gets template code from task status based template holder
Parameters:
Name | Type | Description |
---|---|---|
task |
ITask | task |
templateHolder |
TaskChannelDefinition.TaskStatusBasedType.<string> | task status based template |
componentType |
React.ComponentType | component that is calling the method |
if templateHolder argument is not provided
Error
template code
string