Can you have a "Next" and "Prev" button, inside an Edit page
use case: I wan to edit many records, but I need to enter edit page, click back to return to data table, click record, edit it, click back to return to data table
after entering the edit page, I would like to click Next to take me to the edit page of the next record (of the data table)
Does this make sense?
9 Replies
Yeah, it makes sense, first there's a plugin with similar feature:
https://filamentphp.com/plugins/jose-espinal-record-navigation
Filament
Record Navigation by José Espinal - Filament
Seamless navigation through records in a Filament resource's view.
but not supprting RTL
You can also customize the after edit/create redirect URLs of any resource
Inspect the plugin soruce code to get an idea about how to implement it
thanks! great find!
If you don't want to use plugins
https://filamentphp.com/content/leandrocfe-navigating-filament-pages-with-previous-and-next-buttons
Filament
Navigating Filament Pages with Previous and Next Buttons by Leandro...
A collection of beautiful full-stack components for Laravel. The perfect starting point for your next app. Using Livewire, Alpine.js and Tailwind CSS.
@LeandroFerreira Nice, makes for some good reading.
recently you told me about
$component->getOptions()
for a Select
can I get use $component->getOptions()
with $get() inside another form field?
$get('language_id') returns the id in the language table
but I want the slugno.. I think you can use
$component->getContainer()->getComponent(xx)
to get language_id, but open a new topic please and explain what you are trying to dothanks, I'll do it tomorrow, thanks for your help today!