Ngannv
How can I get current active form tab in a EditResource page?
I was also struggling and had to use the method below.
It seems a bit manual, but hopefully it helps you
First:
in form:
Then define function :
Then:
in mount or in submit function call getActiveTabVHelper
Document: https://filamentphp.com/docs/3.x/forms/layout/tabs#persisting-the-current-tab-in-the-urls-query-string
4 replies
Show Image in InfoList
Sorry!
please try this:
TextEntry::make('anything')->formatStateUsing(function(){
return new HtmlString("<img src='https://codezi.pro/assets/logo-v6.png'>");
})->hiddenLabel(),
8 replies
Livewire actions on form component layout
It's ok if you switch to using Event.
protected function setUp(): void
{
parent::setUp();
$this->registerListeners([
'ProgressBarSection::addBar' => [
function ($component, $customValue) {
// Your code here
Notification::make()->title("You just called ProgressBarSection::addBar ")->send();
},
],
]);
$this->columnSpan('full');
}
Blade view:
<div>
<button
type="button"
wire:click="dispatchFormEvent('ProgressBarSection::addBar', '{{ $getStatePath() }}', 'extra value')"
>Click test demo Event
</button>
</div>
11 replies
Livewire actions on form component layout
https://filamentphp.com/docs/3.x/actions/adding-an-action-to-a-livewire-component
I think this might be what you need
11 replies
Call action method from livewire
https://filamentphp.com/docs/3.x/actions/adding-an-action-to-a-livewire-component
Maybe you are looking for this information?
5 replies
Validation didn't work
This is my concept
Php Filament CustomPage
https://vhelper.pro/share/Zvt639wM4
And View:
<x-filament-panels::page>
<x-filament-panels::form autocomplete="off" wire:submit="submit">
{{ $this->form }}
</x-filament-panels::form>
</x-filament-panels::page>
9 replies