Our blazing fast Grid component built with pure JavaScript
It's not meant to be used currently (just a documentation bug that it shows up). The action column renders action items into the cell always, what is your use case for wanting to use the renderer
in this column?
Hi Mats,
We are wiling to update the cell background when no actions are displayed based on the visibility config.
In addition to not showing actions, we want to provide some feedback to the users using the column renderer.
Regards
Javi
One possibility would be to extend the action column, implement renderer and call the parent renderer. This could be a starting point:
class MyActionColumn extends ActionColumn {
static get type() {
return 'myaction';
}
renderer({ record, column }) {
column.cellCss = 'my-css-class'; // your logic here
super.renderer(...arguments);
}
};
ColumnStore.registerColumnType(MyActionColumn);
MyActionColumn.exposeProperties();
Then you would use myaction
column type instead of action
.
Thanks for your response and sorry for not coming back to you before.
The only requirement is to conditionally style the ActionColumn cell.
In this example https://codepen.io/javicloud/pen/rNGmjEO?editors=0010 you can see the expected behavior.
The only alternative we have is to create a new custom column?
Regards
Javi
Action column is quite not meant to be made to look invalid (as it's not editable), it's meant to show a few clickable actions... How do you use it?
We have one action which opens a modal window where the data is edited, if there are missing data we need to mark the cell with error.