giro
giro
FFilament
Created by giro on 12/19/2023 in #❓┊help
AfterSave and AfterCreate on modal form
I ask myself.
after(function ($record) {
dispatch(new ComarcaSync($record));
}),
after(function ($record) {
dispatch(new ComarcaSync($record));
}),
`
4 replies
FFilament
Created by giro on 12/4/2023 in #❓┊help
After upgrade filament to 3.1.9 problems
Possible another bug on line 29 in file vendor/filament/forms/resoirces/views/components/tabs.blade.php. line show '''let const = this.getTabs()''' I think here is a problem using worj const. Sorry I dont have more knowledge.
15 replies
FFilament
Created by giro on 12/4/2023 in #❓┊help
After upgrade filament to 3.1.9 problems
New livewire versión 3.2.5 published, but after upgrade some other problems appear wiht tabs on filament, checking if is my problem.
15 replies
FFilament
Created by giro on 12/4/2023 in #❓┊help
After upgrade filament to 3.1.9 problems
15 replies
FFilament
Created by giro on 12/4/2023 in #❓┊help
After upgrade filament to 3.1.9 problems
I dont' know if it is more a problem with livewire 3.2.4 because it say Uncaught ReferenceError: watch is not defined
15 replies
FFilament
Created by giro on 12/4/2023 in #❓┊help
After upgrade filament to 3.1.9 problems
I try wat you say and not working. I update from versión 3.0.97 that is working correctly
15 replies
FFilament
Created by giro on 12/4/2023 in #❓┊help
After upgrade filament to 3.1.9 problems
Possible from 3.1.8 or near it? I do a composer update for new, many days working with not problema with 3.1 versions
15 replies
FFilament
Created by giro on 8/23/2023 in #❓┊help
Vite problem after upgrade to v3
Solved. I have a custom theme registered from V2.
4 replies
FFilament
Created by giro on 8/21/2023 in #❓┊help
Adding an action to a Livewire component
I find where problem is, on this code:
public function editAction(): Action
{
return Action::make('edit')->label('Edit')
->form([])
->action(fn () => $this->user->delete());
}
public function editAction(): Action
{
return Action::make('edit')->label('Edit')
->form([])
->action(fn () => $this->user->delete());
}
` function name editAction need to be same that Action:make('edit'). you can't use a diferent action funcition name and make name. For example this not work:
public function editAction(): Action
{
return Action::make('image')->label('Edit')
->form([])
->action(fn () => $this->user->delete());
}
public function editAction(): Action
{
return Action::make('image')->label('Edit')
->form([])
->action(fn () => $this->user->delete());
}
5 replies
FFilament
Created by giro on 8/3/2023 in #❓┊help
Custom field Open Modal Form
I create a filament page for testing, and create a LW component like this:
namespace App\Livewire;

use Livewire\Component;

use App\Models\User;
use Filament\Forms\Components\Select;
use Filament\Actions\Action;
use Filament\Actions\Concerns\InteractsWithActions;
use Filament\Actions\Contracts\HasActions;
use Filament\Forms\Concerns\InteractsWithForms;
use Filament\Forms\Contracts\HasForms;

class FeaturedImageLW extends Component implements HasForms, HasActions
{
use InteractsWithActions;
use InteractsWithForms;

public function render()
{
return view('livewire.featured-image-l-w');
}

public function editAction(): Action
{
return Action::make('updateAuthor')
->form([
Select::make('authorId')
->label('Author')
->options(User::query()->pluck('name', 'id'))
->required(),
])
->action(function (array $data): void {
});
}
}
namespace App\Livewire;

use Livewire\Component;

use App\Models\User;
use Filament\Forms\Components\Select;
use Filament\Actions\Action;
use Filament\Actions\Concerns\InteractsWithActions;
use Filament\Actions\Contracts\HasActions;
use Filament\Forms\Concerns\InteractsWithForms;
use Filament\Forms\Contracts\HasForms;

class FeaturedImageLW extends Component implements HasForms, HasActions
{
use InteractsWithActions;
use InteractsWithForms;

public function render()
{
return view('livewire.featured-image-l-w');
}

public function editAction(): Action
{
return Action::make('updateAuthor')
->form([
Select::make('authorId')
->label('Author')
->options(User::query()->pluck('name', 'id'))
->required(),
])
->action(function (array $data): void {
});
}
}
and this blade render LW component ```<div> {{$this->editAction}} <x-filament-actions::modals /> </div>``` Button is rendered but modal not open. Browser console say: (el2) => { if (isntElement(el2)) return; return el2.hasAttribute(wire:key) ? el2.getAttribute(wire:key) : el2.hasAttribute(wire:id) ? el2.getAttribute(wire:id`) : el2… Thanks
9 replies
FFilament
Created by giro on 8/3/2023 in #❓┊help
Custom field Open Modal Form
OK, thanks
9 replies
FFilament
Created by giro on 8/3/2023 in #❓┊help
Custom field Open Modal Form
Ok, what is best to have a field that I can reuse and have a button that open a modal. A view, and a LW component?
9 replies
FFilament
Created by giro on 8/3/2023 in #❓┊help
Custom field Open Modal Form
My field code is very simple.
<x-dynamic-component
:component="$getFieldWrapperView()"
:field="$field"
>
<div x-data="{ state: $wire.entangle('{{ $getStatePath() }}') }">
<!-- Interact with the `state` property in Alpine.js -->

{{$editAction()}}
</div>
</x-dynamic-component>
<x-dynamic-component
:component="$getFieldWrapperView()"
:field="$field"
>
<div x-data="{ state: $wire.entangle('{{ $getStatePath() }}') }">
<!-- Interact with the `state` property in Alpine.js -->

{{$editAction()}}
</div>
</x-dynamic-component>
No error from browser console.
9 replies
FFilament
Created by giro on 8/3/2023 in #❓┊help
Any example of a multilevel category?
Okey, this I know. But for default It will list all categories, but categories have parents and childrens. How manage this on list?
6 replies