rstaib / jquery-bootgrid

Nice, sleek and intuitive. A grid control especially designed for bootstrap.
http://www.jquery-bootgrid.com
MIT License
972 stars 364 forks source link

Changing cell class via formatter #362

Closed bellwood closed 6 years ago

bellwood commented 7 years ago

Has anyone implemented changing the text alignment class for a cell using a formatter?

I have a column that is by default text-left, however, using my formatter, I'd like to change this to text-center when its called (for just those cells)

Been putzing with jQ trying to get the DOM right but it's getting messy.

bellwood commented 7 years ago

It doesn't look like this is possible as the formatters don't see the loaded instance of the grid so trying to reference, say, data-row-id doesn't work.