Commit e20efe33 authored by Franco Fichtner's avatar Franco Fichtner

layout: add boolean value, submitted by @fbrendel

parent 09959a95
......@@ -53,7 +53,14 @@ function stdBootgridUI(obj, sourceUrl, options) {
} else {
return "<span style=\"cursor: pointer;\" class=\"fa fa-square-o command-toggle\" data-value=\"0\" data-row-id=\"" + row.uuid + "\"></span>";
}
}
},
"boolean": function (column, row) {
if (parseInt(row[column.id], 2) == 1) {
return "<span class=\"fa fa-check\"></span>";
} else {
return "<span class=\"fa fa-times\"></span>";
}
},
}
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment