Closed joebordes closed 7 years ago
I think you may have to update the datatable website also:
https://bunnyjs.com/examples/datatable/
* url=”string” - ajax URL without any params...
I think you can delete the "without any params"
Thanks for accepting the merge
Thanks.
Later BunnyURL there should be used since it is already a dependency for DataTable.
I've added to DataTable search option which is not documented yet. If you will need it just create input with name="search"
within <datatable>
.
P.S. Instead of var
it is recommended now to use const
or let
. Here is good video explaining https://www.youtube.com/watch?v=sjyJBL5fkp8
That video was very enlightening. I take note. Thanks :-)
The ajax URL I use to retrieve data has parameters:
index.php?param1=val1¶m2=val2....
so when the pagination code adds the "page" parameter with a hardcoded question mark it doesn't work correctly. I added an "if" to detect the existence of a question mark in order to set the correct parameter separator and it is working correctly in both case.