How to get a cell background color in webix datatable
How to get a cell background color in webix datatable, using row_id and column_id
you can get the cell node by getItemNode
and then using getComputedStyle
retrieve background color
var node = table.getItemNode({row: rowId, column: columnId});
var style = getComputedStyle(node);
var backgroundColor = style.getPropertyValue("background-color");
Hi thanks for your quick reply,
but in backgroundColor it return rgb(220, 230, 230) value
is it possible to get hexa color value like #edacdc
you need to parse received value and convert it to hex
check this
but if a column is spanned and applied a new color is not returning spanned background color, it always return original cell background color,
it is possible to get spanned cell background color?
try to use getSpanNode
https://docs.webix.com/api__ui.datatable_getspannode.html