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/gridcolumn_properties/gridcolumn_mark_property/ below:

Website Navigation


JavaScript Grid column - mark Config

mark

Optional. Returns a template for marking a cell(s) or applies the desired CSS classes to cells with minimal|maximal values in a column

Usage​
mark?:
{ min?: string, max?: string } |
(cell, columnCells: [], row?: IRow, column?: ICol) => string;
Parameters​

The mark property can be either an object or a function:

Example​
<style>
.max_cell {
background: #f44336;
color: #FFF;
}

.min_cell {
background: #4CAF50;
color: #FFF
}
</style>

<script>
const grid = new dhx.Grid("grid_container", {
columns: [
{
id: "population", header: [{ text: "Population" }],
mark: {
min: "min_cell",
max: "max_cell"
}
},
// more columns configuration objects
],
// more options
});
</script>

Related article: Adding custom marks to cells

Related sample: Grid. Mark cells


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