YADCF插件 - 从Eonasdan Bootstrap Datetimepicker获取日期功能

时间:2018-01-14 16:42:36

标签: javascript datatables yadcf

如何从yadcf插件日期范围中获取日期?

因为我想获取日期并在将记录保存为pdf时将其包括在内

1 个答案:

答案 0 :(得分:0)

您应该为此目的使用exGetColumnFilterVal

* exGetColumnFilterVal
            Description:        Allows to retrieve  column current filtered value (support ALL filter types!!!)
            Arguments:          table_arg: (variable of the datatable),
                                column number:  column number from which we want the value
            Usage example:      yadcf.exGetColumnFilterVal(oTable,1);
            Return value:       String (for simple filter) / Object (for range filter) with from and to properties / Array of strings for multi_select filter