Page 1 of 1

All column types (not just template) in Bryntum Grid to accept custom CSS

Posted: Mon Jan 23, 2023 5:01 pm
by jcantos

Nowadays there's only the Template column type in Bryntum grid to allow us to inject some CSS to have a specific look and feel for, e.g., read only columns. Would you consider having all the other column types able to get a custom CSS, please?
Thanks a lot!


Re: All column types (not just template) in Bryntum Grid to accept custom CSS

Posted: Mon Jan 23, 2023 7:33 pm
by marcio

Hey jcantos,

Perhaps you could use https://bryntum.com/products/grid/docs/api/Grid/column/Column#config-cellCls or https://bryntum.com/products/grid/docs/api/Grid/column/Column#config-cls.

Also, if you don't want to use CSS classes, you can use https://bryntum.com/products/grid/docs/api/Grid/column/Column#config-renderer and change the style inside the renderData parameter, like the example:

renderer(renderData) {
	renderData.cellElement.style = 'align-items: start';
}