features
Menu
Menu

Conditional Formatting

ZingGrid has conditional formatting for cells so you can render different content based on a value.

On This Page

Row Formatting

You can style rows by adding the row-class attribute to the <zing-grid> tag.
Edit
Download
CloseCopy Copied
CloseCopy Copied
CloseCopy Copied

Column Formatting

You can style columns by adding the col-class attribute to the <zing-grid> tag.
Edit
Download
CloseCopy Copied
CloseCopy Copied
CloseCopy Copied

Cell Formatting

You can put the cell-class attribute on the <zing-grid> or <zg-column> elements.

Putting the attribute on the <zing-grid> tag applies the class globally, meaning that function will run for EVERY cell.

Edit
Download
CloseCopy Copied
CloseCopy Copied
CloseCopy Copied

Related Resources

Join the Community

Support, extra demos, pre-releases and more

loadingloadBgloadBgloadBgloadBgloadBgloadBgloadBgloadBgloadBgloadBgloadBgloadBgloadBgloadBgloading