gitana / alpaca

Alpaca provides the easiest way to generate interactive HTML5 forms for web and mobile applications. It uses JSON Schema and simple Handlebars templates to generate great looking, dynamic user interfaces on top of Twitter Bootstrap, jQuery UI, jQuery Mobile and HTML5.
http://www.alpacajs.org
Other
1.29k stars 369 forks source link

DataTables Individual column searching and file exports #676

Open cagc4 opened 6 years ago

cagc4 commented 6 years ago

Hi guys

How can I implement in Alpaca:

1) Individual column searching https://datatables.net/examples/api/multi_filter.html 2) file exports https://datatables.net/extensions/buttons/examples/initialisation/export.html

Thanks

cagc4 commented 6 years ago

The solution for the second point is:

"datatables": { "dom": 'Bfrtip', "buttons": [ 'copy', 'csv', 'excel', 'pdf', 'print' ] }

Addition:

https://code.jquery.com/jquery-3.3.1.js https://cdn.datatables.net/1.10.19/js/jquery.dataTables.min.js https://cdn.datatables.net/buttons/1.5.2/js/dataTables.buttons.min.js https://cdn.datatables.net/buttons/1.5.2/js/buttons.flash.min.js https://cdnjs.cloudflare.com/ajax/libs/jszip/3.1.3/jszip.min.js https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.36/pdfmake.min.js https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.36/vfs_fonts.js https://cdn.datatables.net/buttons/1.5.2/js/buttons.html5.min.js https://cdn.datatables.net/buttons/1.5.2/js/buttons.print.min.js