Alternative List View for Tiles #1014
Replies: 2 comments 1 reply
-
Hello @fronbow, If you need to replace the list view, copy the file located at /vendor/backpack/crud/src/resources/views/crud/list.blade.php to /resources/views/vendor/backpack/crud/. After this, you can start customizing the view as needed. Please note that most of the DataTables functions depend on the script at /vendor/backpack/crud/src/resources/views/crud/inc/datatables_logic.blade.php. Alternatively, you can override the list controller, but be aware that this change will affect all CRUD operations in the application.
Cheers. |
Beta Was this translation helpful? Give feedback.
-
I don't think that will happen anytime soon, most of our users use DataTables for their lists and we have developed many features for it. We are looking to have Livewire components in the future and that is our priority. If something works, don't touch it ;) I will close this issue, but please feel free to re-open or create a new one if needed. Cheers. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi All
I'm trying to work out the logic for a custom operation that is basically an alternative list view.
I initially thought it was just a custom operation but the more I think about it, it needs all the functionality of the ListOperation but decoupled from dataTables.
Isotope seems to be a good fit in that it will allow me to have tile-able records.
Tabulator might also be a nice alternative option to dataTables.
Each tile will be a record with buttons for modal operations (the use-case is to record when people enter/leave our day centre so that staff can record any interactions the clients have in the day and then write overall notes up at end of service).
Can I just duplicate the
src/app/Http/Controllers/Operations/ListOperation.php
file and its' view and rename it toTileOperation
(obviously editing the source with relevant changes) and then add that Operation to my relevantCrudController
? Or am I better off implementing a new Operation?Cheers for any help/ideas
Beta Was this translation helpful? Give feedback.
All reactions