ModestasV
ModestasV
FFilament
Created by Jordy on 1/28/2025 in #❓┊help
Access form with extra modal footer
probably something like $livewire->call(..)
53 replies
FFilament
Created by Jordy on 1/28/2025 in #❓┊help
Access form with extra modal footer
this one for sure should be available via $livewire
53 replies
FFilament
Created by Jordy on 1/28/2025 in #❓┊help
Access form with extra modal footer
honestly, that is one of the reasons why I find some interesting use-cases for Filament 😄 It always starts with what if...? for me
53 replies
FFilament
Created by Jordy on 1/28/2025 in #❓┊help
Access form with extra modal footer
but that's a wild guess 😄
53 replies
FFilament
Created by Jordy on 1/28/2025 in #❓┊help
Access form with extra modal footer
Might be, but you could also emit something else via: ->afterStateUpdated($callback) In that case, you could try to listen for that event on action
53 replies
FFilament
Created by Jordy on 1/28/2025 in #❓┊help
Access form with extra modal footer
Or actually.. what if you trigger an event? Wouldn't that work...?
53 replies
FFilament
Created by Jordy on 1/28/2025 in #❓┊help
Access form with extra modal footer
maybe reverse-engineering that?
53 replies
FFilament
Created by Jordy on 1/28/2025 in #❓┊help
Access form with extra modal footer
wait, but how does the submit button then get handled?
53 replies
FFilament
Created by Jordy on 1/28/2025 in #❓┊help
Access form with extra modal footer
No worries! Sad that couldn't help, but was interesting brain itch 😄
53 replies
FFilament
Created by Jordy on 1/28/2025 in #❓┊help
Access form with extra modal footer
unless you have it somewhere else, not in a table row?
53 replies
FFilament
Created by Jordy on 1/28/2025 in #❓┊help
Access form with extra modal footer
Okay, it seems that the ->hidden() runs once for each row and doesn't get called again
53 replies
FFilament
Created by Jordy on 1/28/2025 in #❓┊help
Access form with extra modal footer
In my case, this gets to action form data, but it is not really reactive:
Action::make('modal_stuff')
->modal()
->form([
Forms\Components\TextInput::make('test'),
Forms\Components\Checkbox::make('form_input')
])
->extraModalFooterActions([
Action::make('start')
->hidden(function ($livewire) {
dd($livewire->getTable()->getActions()[1]->getFormData());
}),
])
Action::make('modal_stuff')
->modal()
->form([
Forms\Components\TextInput::make('test'),
Forms\Components\Checkbox::make('form_input')
])
->extraModalFooterActions([
Action::make('start')
->hidden(function ($livewire) {
dd($livewire->getTable()->getActions()[1]->getFormData());
}),
])
But this might be a direction 😅
53 replies
FFilament
Created by Jordy on 1/28/2025 in #❓┊help
Access form with extra modal footer
Huh, I might have mixed a place. Buut, it's possible to get to the action via:
$livewire->getTable()->getActions()
$livewire->getTable()->getActions()
53 replies
FFilament
Created by Jordy on 1/28/2025 in #❓┊help
Access form with extra modal footer
It should be reachable via $livewire->form
53 replies
FFilament
Created by Matthew on 1/28/2025 in #❓┊help
Dashboard welcome content
You should be able to set a view for any widget like this: protected static string $view = 'filament.widgets.visitors-chart'; Inside, you can do any html you want
5 replies
FFilament
Created by yohanan on 1/20/2025 in #❓┊help
Tailwind css not working on full-page livewire component
I think that the resources are not being loaded in the components/layouts correctly
24 replies
FFilament
Created by yohanan on 1/20/2025 in #❓┊help
Tailwind css not working on full-page livewire component
Okay, but how did you import the theme/asset files into your layout?
24 replies
FFilament
Created by yohanan on 1/20/2025 in #❓┊help
Tailwind css not working on full-page livewire component
Is the theme being loaded correctly? Try to override some filament styling and see if it works
24 replies
FFilament
Created by yohanan on 1/20/2025 in #❓┊help
Tailwind css not working on full-page livewire component
Have you compiled the assets after you used tailwind classes?
24 replies
FFilament
Created by jlove1672 on 1/20/2025 in #❓┊help
Align heading with search bar
Of course, in this case, you would move a different element
3 replies