Hi,
I have created this snipped to make dateRange filtering.
http://webix.com/snippet/0674b51e
which is not working on purpose.
I have seen in documentation that I have to add new Date ()
like this
var data = [
{ id:1, title:"Create snippets for Alan", date:new Date(2016, 07, 07, 14, 55)},
{ id:2, title:"Call Barbara for license", date:new Date(2015, 07, 08, 18, 20)},
{ id:3, title:"Check newbie's code", date:new Date(2016, 05, 04, 11, 08)},
{ id:4, title:"Fix bugs with multi selection", date:new Date(2016, 01, 06, 15, 26)},
{ id:5, title:"Answer support letters", date:new Date(2016, 11, 23, 22, 17)},
{ id:6, title:"Implement secret functionality", date:new Date(2016, 04, 16, 16, 40)}
];
The thing is that the dates comes from PHP and I have to declare foreach date
scheme:{
$init:function(obj){
obj.due_date = new Date(obj.due_date)
},
but I have 30 datatables with a lot different date columns and I would not like to declare them all in $init.
How can I do it better ?