File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change 350350 $ (' #users-datatable' ).dataTable
351351 processing : true
352352 serverSide : true
353- ajax : {url : $ (' #users-datatable' ).data (' source' )}
353+ ajax :
354+ url : $ (' #users-datatable' ).data (' source' )
354355 pagingType : ' full_numbers'
355356 columns : [
356357 {data : ' id' }
@@ -373,7 +374,9 @@ jQuery(document).ready(function() {
373374 $ (' #users-datatable' ).dataTable ({
374375 " processing" : true ,
375376 " serverSide" : true ,
376- " ajax" : {" url" : $ (' #users-datatable' ).data (' source' )},
377+ " ajax" : {
378+ " url" : $ (' #users-datatable' ).data (' source' )
379+ },
377380 " pagingType" : " full_numbers" ,
378381 " columns" : [
379382 {" data" : " id" },
@@ -657,7 +660,7 @@ This feature works with [yadcf](https://github.com/vedmack/yadcf).
657660
658661To enable the date range search, for example ` created_at ` :
659662
660- * add a ' created_at' ` <th> ` in your html
663+ * add a ` created_at ` ` <th> ` in your html
661664* declare your column in ` view_columns ` : ` created_at: { source: 'Post.created_at', cond: :date_range, delimiter: '-yadcf_delim-' } `
662665* add it in ` data ` : ` created_at: record.decorate.created_at `
663666* setup yadcf to make ` created_at ` search field a range
You can’t perform that action at this time.
0 commit comments