Request new features or modifications


Post by mbingham »

We have the assignment editor appearing in two places, where it displays the "Resource Name" and "Units" columns. However, our data model lacks any ability to persist the units, so we'd rather the user didn't have the ability to enter a percentage here.

Is there a nice place you could surface a parameter / hook / decorator to configure this? Or is the best recommendation to override the buildColumns method, or even override Gnt.column.AssignmentUnits with hidden: true?

Gnt.widget.AssignmentEditGrid:
assignment-edit-grid.png
assignment-edit-grid.png (19.42 KiB) Viewed 2974 times
Gnt.field.Assignment:
assignment-field.png
assignment-field.png (10.75 KiB) Viewed 2974 times

Post by arcady »

mbingham wrote:Is there a nice place you could surface a parameter / hook / decorator to configure this? Or is the best recommendation to override the buildColumns method, or even override Gnt.column.AssignmentUnits with hidden: true?
Probably overriding of Gnt.column.AssignmentUnits will do the trick for you at the moment.
Thank you for the feedback we'll discuss it internally how to give those controls more flexibility. :)

Maybe just adding columns config support for Gnt.widget.AssignmentGrid and Gnt.widget.AssignmentEditGrid will be enough. :geek:

Post Reply