Custom filtering with yadcf
yadcf is a jquery plugin that allows the user to easily add filter components to table columns.
The following example shows how to make the datatables php library compatible with yadcf plugin.
Handles server-side processing for Datatables, in a fast and simple way !
yadcf is a jquery plugin that allows the user to easily add filter components to table columns.
The following example shows how to make the datatables php library compatible with yadcf plugin.
ID | Track Name | Genre | MediaType |
---|---|---|---|
loading... | |||
ID | Track Name | Genre | MediaType |
In addition to the above code, the following Javascript library files are loaded for use in this example:
https://code.jquery.com/jquery-3.3.1.js
https://cdn.datatables.net/2.0.8/js/dataTables.min.js
https://cdn.datatables.net/responsive/3.0.2/js/dataTables.responsive.min.js
https://cdnjs.cloudflare.com/ajax/libs/chosen/1.8.7/chosen.jquery.js
https://raw.githack.com/vedmack/yadcf/master/2.0/jquery.dataTables.yadcf-2.0.js
The following CSS library files are loaded for use in this example to provide the styling of the
table:
https://cdn.datatables.net/2.0.8/css/dataTables.dataTables.min.css
https://cdn.datatables.net/responsive/3.0.2/css/responsive.dataTables.min.css
https://cdnjs.cloudflare.com/ajax/libs/chosen/1.8.7/chosen.css
https://raw.githack.com/vedmack/yadcf/master/dist/jquery.dataTables.yadcf.css