maltebaer
maltebaer
FFilament
Created by maltebaer on 2/1/2024 in #❓┊help
passing data to infolist action
i found a solution! on my component i added
public function viewAction(): Action
{
return Action::make('view')
->modalContent(fn (array $arguments) => view('foo', ['arguments' => $arguments]));
}
public function viewAction(): Action
{
return Action::make('view')
->modalContent(fn (array $arguments) => view('foo', ['arguments' => $arguments]));
}
inside the schema of my section
ViewEntry::make('bar')
->view('bar')
ViewEntry::make('bar')
->view('bar')
and inside the blade file
<div>
{{ ($this->viewAction)(['details' => $getState()]) }}
</div>
<div>
{{ ($this->viewAction)(['details' => $getState()]) }}
</div>
now in my foo.blade i have access to the data bar of the respective foo entry. hope it can help someone else!
4 replies
FFilament
Created by maltebaer on 2/1/2024 in #❓┊help
passing data to infolist action
another idea i had was to add another state to the Action, but this is not implemented.
4 replies
FFilament
Created by awsqed on 10/10/2023 in #❓┊help
Register new chart type
awesome, thank you @awsqed! one note: for me to get it working i had to copy the view into resources/views/vendor/filament-widgets/chart-widget.blade.php.
8 replies
FFilament
Created by maltebaer on 12/5/2023 in #❓┊help
make use of tailwind layers in custom theme
adding the styles directly to theme.css works just fine. i only have to be more careful with the specificity if i'm not able to make use of tailwinds layers.
5 replies
FFilament
Created by maltebaer on 12/5/2023 in #❓┊help
make use of tailwind layers in custom theme
thanks a lot for the help. ->extraAttributes() does not exist on the panel provider. i guess it would not be clear which element to apply to. i agree that using the render hooks is to hacky to apply my own custom styles.
5 replies
FFilament
Created by maltebaer on 6/19/2023 in #❓┊help
handle form component visibility with javascript
hey dennis, thanks for your answer. at the moment i'm trying to add this functionality with alpine. since i have a lot of different form components, it's not that trivial and i have to take care of a lot of edge cases (also i'm kind of confused that not every component has setExtraInputAttributes() and if not setExtraAttributes() sets the attributes on the input and not on the wrapper component). since you guys dealt with all this quirks already i just wanted to check in, if there is no better solution. btw: is there some kind of javascript object where filament tracks the state?
3 replies
FFilament
Created by maltebaer on 5/17/2023 in #❓┊help
getTableQuery() for pivot table that does not have a primary key
okay, good to know. thanks for your answer.
3 replies