This version only works with UserFrosting 4.1.x !
Install the following UserFrosting Sprinkles as submodules in you app/sprinkles directory
- git submodule add -b master git@github.com:ssnukala/ufsprinkle-datatables Datatables
- git submodule add -b master git@github.com:ssnukala/ufsprinkle-sevak Sevak
Add
"Datatables",
"Sevak",
in your sprinkles.json
Run composer update
then php bakery bake
to install the sprinkle assets
http://<yoursite.com>/venues
You will see the Datatables in action.
The following are some key directories for implementing datatables
Sevak/src/Sprunje
- Sprunje to return dataSevak/src/Controller/datatables/
- Contains the controllers for the Datatable formatsSevak/schema/datatable
- Contains the .yaml file with datatable column SpecificationsSevak/templates/pages/
- sample of the dashboard that brings the datatables to lifeSevak/templates/tables/formatters/
- contains the column formatter HTML (uses row.<field_name> as a convention - this will be replaced by the actual value