I’m currently adding inline editing functionality to the grid and keep getting type errors for each editor. I have the editors and columns setup like this:
const EDITORS = {
text: {type: 'text', map_to: 'phase'},
start_date: {
type: 'date',
map_to: 'start_date',
},
end_date: {
type: 'date',
map_to: 'end_date',
},
duration: {type: 'number', map_to: 'duration', min: 0, max: 100},
predecessors: {type: 'predecessor', map_to: 'predecessors'},
};
columns: [
{
name: 'start_date',
editor: EDITORS.start_date,
label: 'Start Date',
align: 'center',
width: 100,
resize: true,
},
{
name: 'end_date',
editor: EDITORS.end_date,
label: 'End Date',
align: 'center',
width: 100,
resize: true,
},
{
name: 'duration',
editor: EDITORS.duration,
label: 'Duration',
align: 'center',
width: 90,
resize: true,
},
{
name: 'phase',
editor: EDITORS.text,
label: 'Phase',
align: 'center',
width: 100,
resize: true,
},
],
Has anyone else faced similar issues while updating to 5.2?