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:
<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