JsxItem
Item displaying content generated by a React (JSX) component
JsxItem can only be used in React applications.
Configs
7
Configs
7Widget type or config to use as the editor for this item. Used in the inline task editor.
JsxItems are un-editable by default.
jsx: function
Function used to generate JSX item content.
Return a React Element (JSX) from the function:
import MyJsxItem from './MyJsxItem.js';
const taskBoard = new TaskBoard({
bodyItems : {
prio : {
type : 'jsx',
jsx : ({ taskRecord }) => <MyJsxItem taskRecord={taskRecord} />
}
}
});
| Parameter | Type | Description |
|---|---|---|
taskRecord | TaskModel | Task record |
config | JsxItemConfig | Item config |
value | Object | Value of the configured field |
Returns: * -
React Element (JSX)
clsTaskItem
fieldTaskItem
hiddenTaskItem
orderTaskItem
styleTaskItem
Properties
2
Properties
2Typedefs
1
Typedefs
1TaskItemOptionsTaskItem