I have a table which looks like this (I'm using flask and jinja2):
dataTable = {{ json_data | tojson }};
var view_doc = new Tabulator(
"#view_doc",
{
layout:"fitDataFill",
locale:"ru",
data : dataTable,
columns:{{ json_columnstr | tojson }},
movableRows:true,
//movableRowsConnectedTables: "#tablecolumns",
dataTree:true,
dataTreeChildField:"columns",
movableRowsSender: "delete",
//groupBy:"drilling",
}
);
and I'm trying to sort a column with dates:
view_doc.setSort({title:$("input[name=radiosort]:checked").val(), field:$("input[name=radiosort]:checked").attr("id").replace("radio", ""), sorter:"date", dir:active_sort, sorterParams:{format:"dd.MM.YYYY"}})
which evaluates to:
but it gives me this error: Sort Warning - Sort field does not exist and is being ignored. The field and title are correct, so I'm not sure what is causing the error.