Added the possibility to use "option" field type outside a group. This is convenient to create just a single checkbox.

This commit is contained in:
Tomas Bures 2018-12-28 20:54:00 +01:00
parent 64af46b685
commit 2e847460f4
10 changed files with 117 additions and 26 deletions

View file

@ -17,7 +17,7 @@ async function ajaxListTx(tx, params, queryFun, columns, options) {
columnsNames.push(col.name);
if (col.raw) {
columnsSelect.push(tx.raw(col.raw));
columnsSelect.push(tx.raw(col.raw, col.data || []));
} else if (col.query) {
columnsSelect.push(function () { return col.query(this); });
}