[REACT] Hide Units Column on resourceassignments
Is there any configuration to hide the Units column on the resourceassignments picker? If not, is there any other way to remove that (i.e.: through listeners)?
Is there any configuration to hide the Units column on the resourceassignments picker? If not, is there any other way to remove that (i.e.: through listeners)?
Yes sure, please see docs for ResourceAssignmentColumn which has a AssignmentField as its editor: https://bryntum.com/docs/gantt/#Gantt/column/ResourceAssignmentColumn#config-editor
Using the editor config you can configure the https://bryntum.com/docs/gantt/#Gantt/widget/AssignmentField#config-picker (which is an AssignmentGrid)
And https://bryntum.com/docs/gantt/#Gantt/widget/AssignmentGrid has a https://bryntum.com/docs/gantt/#Gantt/widget/AssignmentGrid#config-unitsColumn config you can use to add:
{ hidden : true }
Hi Mats,
I tried the following:
columns={[
{ type : 'resourceassignment', text: 'Owner(s)', width : 120,
picker: {
unitsColumn: {hidden: true }
}
}
]}
But, the units column is still showing. Do you see any issues with the code above?
Yes, you forgot to define this in the 'editor' block:
columns={[
{ type : 'resourceassignment', text: 'Owner(s)', width : 120,
editor : {
picker: {
unitsColumn: {hidden: true }
}
}
}
]}