Added display of null
in data table view
This commit is contained in:
parent
c6be9dd54a
commit
b220354284
@ -60,7 +60,7 @@ DataTableCellUI.prototype._render = function() {
|
|||||||
.mouseleave(function() { editLink.css("visibility", "hidden"); });
|
.mouseleave(function() { editLink.css("visibility", "hidden"); });
|
||||||
|
|
||||||
if (!cell || ("v" in cell && cell.v === null)) {
|
if (!cell || ("v" in cell && cell.v === null)) {
|
||||||
$('<span>').html(" ").appendTo(divContent);
|
$('<span>').addClass("data-table-null").html('null').appendTo(divContent);
|
||||||
} else if ("e" in cell) {
|
} else if ("e" in cell) {
|
||||||
$('<span>').addClass("data-table-error").text(cell.e).appendTo(divContent);
|
$('<span>').addClass("data-table-error").text(cell.e).appendTo(divContent);
|
||||||
} else if (!("r" in cell) || !cell.r) {
|
} else if (!("r" in cell) || !cell.r) {
|
||||||
|
@ -201,6 +201,10 @@ div.data-table-cell-content-numeric > a.data-table-cell-edit {
|
|||||||
color: #282;
|
color: #282;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.data-table-null {
|
||||||
|
color: #aaa;
|
||||||
|
}
|
||||||
|
|
||||||
.data-table-error {
|
.data-table-error {
|
||||||
color: red;
|
color: red;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user