A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://docs.dhtmlx.com/suite/grid/api/grid_rowcss_config/ below:

Website Navigation


JavaScript Grid - rowCss Config

rowCss

Optional. Sets style for a row

rowCss?: (row: object) => string;

Example

<style>
.my_custom_row {
background: coral;
}
</style>

const grid = new dhx.Grid("grid_container", {
columns: [
// columns config
],
rowCss: (row) => { return row.custom ? "my_custom_row" : "" },
data: dataset
});

Related sample: Grid. Custom row style

The function takes the object of a row as a parameter and returns a string with the name of a CSS class.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4