mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-16 09:34:39 +00:00
layout: add boolean value, submitted by @fbrendel
This commit is contained in:
parent
09959a9575
commit
e20efe33b0
@ -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>";
|
||||
}
|
||||
},
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user