Hi,
We are working with Bryntum Gantt, and want to add a custom tab in the task edit. Within the tab, we have two fields (textfield) which need to show activity data. The data that needs to be shown in an Array of Objects, and even though we are able to access all other data fields, this specific field (which is an array of objects) is not accessible.
Field that needs to be rendered within the custom tab:
ActivityCodes : [
{Code_Value: '20', Code_Name: 'Responsibility'},
{Code_Value: '01', Code_Name: 'Printing'}
]
import { TaskEdit, TaskEditConfig } from '@bryntum/gantt';
const getActivityCodeTabTaskEditConfig: () => object | boolean | Partial<TaskEditConfig> = () => {
return {
newTab : {
// Tab is a FormTab by default
title : 'ACTIVITY CODE',
weight : 100,
items : {
field1 : {
type : 'textfield',
weight : 710,
label : 'Description',
name : 'acitivityCodes', // Name of the field matches data field name, so value is
// loaded/saved automatically - Does not display anything
renderer : ({ value } : {value: any}) => {
console.log('value', value) // logs nothing
return value;
},
}
}
},
}
}
export default getActivityCodeTabTaskEditConfig;