Methods
# static arrayRenderer(data, type, row, meta) → {*}
Datatables cell renderer that can render arrays or multivalue fields coming from Serrea.
Parameters:
Name | Type | Description |
---|---|---|
data |
||
type |
||
row |
||
meta |
*
# static buildColorMapRenderer(map) → {function}
Creates a renderer function from a map of key:color pairs like:
let map = new Map(); map.set("1 - High Possiblity", "#d11414"); map.set("2 - Unknown", "#37009E"); map.set("3 - Validate SPAM/Malware", "#ff751a"); map.set("4 - Reset Forced", "#ffff00"); map.set("5 - Already Reset", "#00ff00");
Parameters:
Name | Type | Description |
---|---|---|
map |
function
# static buildDrillDownCellRenderer(value_cls)
Builds a cell renderer with a link inside, can render arrays or single values.
protected aginst XSS
Parameters:
Name | Type | Description |
---|---|---|
value_cls |
class that can be added to a renderer |
# static buildWrapPartWithSpanRenderer(getKeyword, html_class) → {function}
Creates a cell renderer that will wrap some part of the text with a span and a class. Useful to highlight some part of a cell.
Parameters:
Name | Type | Description |
---|---|---|
getKeyword |
function
|
function that will return the keyword to be searched on each rendered cell. |
html_class |
String
|
class added to the highlighted area, by default it will put a style with a font-weight:bold rule. |
function
# static tooltipRenderer(data, type, row, meta) → {string}
Renders a cell with a span and a tooltip
Parameters:
Name | Type | Description |
---|---|---|
data |
||
type |
||
row |
||
meta |
string