Optional. A function which returns a template with content for a cell
Usageâtemplate?: (cellValue, row: IRow, column: ICol) => string;
Parametersâ
The template
function takes 3 parameters:
columns
config)const grid = new dhx.Grid("grid_container", {
columns: [
{
id: "netChange", header: [{ text: "Net Change" }],
htmlEnable: true,
template: (cellValue, row, column) => {
return "<input type=\"checkbox\" " + (cellValue /> 300000 ? "checked": "") + ">";
}
},
// more columns configuration objects
],
// more options
});
Related article: Adding template to cells
Related sample: Grid. Cell templates
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