I wish there were a ListGridFieldType.IMAGE_TEXT type for the ListGrid, such that an image as well as a text could be easily rendered.
To make up for this, I tried overriding createRecordComponent and returning a Label with the required text while leaving the column as a ListGridFieldType.IMAGE and letting the grid take care of the rendering of the image.
The above approach kinda works, but involves awkward alignment of text vs. image, has the problem that events are captured by the Label rather than propagate down to the grid and last but not least, results in rendering artifacts when changing grouping.
What is the recommended way for achieving a ListGridFieldType.IMAGE_TEXT? The grid_cell_widgets example doesn't really address such a need.
To make up for this, I tried overriding createRecordComponent and returning a Label with the required text while leaving the column as a ListGridFieldType.IMAGE and letting the grid take care of the rendering of the image.
The above approach kinda works, but involves awkward alignment of text vs. image, has the problem that events are captured by the Label rather than propagate down to the grid and last but not least, results in rendering artifacts when changing grouping.
What is the recommended way for achieving a ListGridFieldType.IMAGE_TEXT? The grid_cell_widgets example doesn't really address such a need.
Comment