Replies: 22 comments 22 replies
-
You can use this trait HasTabs. Then add this line on your view: <x-filament-panels::resources.tabs /> Then your getTabs() will appear above your table. |
Beta Was this translation helpful? Give feedback.
-
How can I solve ... throws an error -> getRenderHookScopes does not exist. I'm using Filament 3, but just tables and forms, not the panel. Thank you very much! |
Beta Was this translation helpful? Give feedback.
-
Unfortunately not. |
Beta Was this translation helpful? Give feedback.
-
Can you show me your Livewire page |
Beta Was this translation helpful? Give feedback.
-
Livewire Page:`<?php namespace App\Filament\Admin\Pages; use Filament\Forms; class Posts extends Page implements Tables\Contracts\HasTable, Forms\Contracts\HasForms
} View Page:
I have tested this one and it works. |
Beta Was this translation helpful? Give feedback.
-
DonorList.php
donors-list.blade.php
|
Beta Was this translation helpful? Give feedback.
-
Try to add this function in your class
|
Beta Was this translation helpful? Give feedback.
-
I have a similar code, but now I get |
Beta Was this translation helpful? Give feedback.
-
use this trait like this
and add this function in yr class
} |
Beta Was this translation helpful? Give feedback.
-
run |
Beta Was this translation helpful? Give feedback.
-
Same problem. When I use @Dump($this->getTabs()) in my blade-file, I get all tabs. But using <x-filament-panels::resources.tabs /> I still get |
Beta Was this translation helpful? Give feedback.
-
try this ref: https://discord.com/channels/883083792112300104/1181239883965157467/1181307522389377066 |
Beta Was this translation helpful? Give feedback.
-
The tab is a feature for resources, so to make it work on the customer page, we need to utilize the function located under Filament\Resources\Pages\ListRecords (protected function makeTable(): Table). I am confident that there is an easy way to achieve this without duplicating the code, but currently, I don't have enough time to figure it out. However, later this week, I will dedicate time to find the solution of this. If I find the solution, I will post it here |
Beta Was this translation helpful? Give feedback.
-
Would it be possible to describe wich files you are using at the moment? I'm a little bit confused now. I'm so sorry. |
Beta Was this translation helpful? Give feedback.
-
My component: `<?php namespace App\Livewire; use Livewire\Component; class Registrations extends Component implements HasForms, HasTable
} My blade-file '
' And my Trait/Consern `<?php use App\Models\Teacher; trait InteractsWithTable
} |
Beta Was this translation helpful? Give feedback.
-
I tried to change your component like this: ` use Livewire\Component; class Registrations extends Component implements HasForms, HasTable
} If it doesn't work, please create a repository, and I will take a look for you. |
Beta Was this translation helpful? Give feedback.
-
You can create a trait looks like this use Filament\Tables; trait InteractWithTabs
} Then use that trait (use InteractWithTabs) anywhere you want. |
Beta Was this translation helpful? Give feedback.
-
Thank you everyone how wanted to help me. Now, after several hours I give up and use the usual filter-functionality. |
Beta Was this translation helpful? Give feedback.
-
Ok! All right! |
Beta Was this translation helpful? Give feedback.
-
It's not working for me. I got getAttribute not defined in javascript browser console. |
Beta Was this translation helpful? Give feedback.
-
Can we use tabs inside livewire component ? not inside filament pages. |
Beta Was this translation helpful? Give feedback.
-
Cool it works, but how can we set it to have a default selected tabs? This seems not working
|
Beta Was this translation helpful? Give feedback.
-
hello there! please need a help on how to make a tabs on custompage in filament?
i have create a custom page named product linked with a resource named categoryResource.Then when i tried to use the getTabs method on this page in show nothing on the panel.
i have notice that my custom page extends page but not Listrecords, also is it possible to join it to livewire component as it is done whith the table? i mean in the blade file whe use {{$this->table}} for table, is it not possible for tabs too?
here is the code of the product page below
where('idcategorie', $this->record->id); } public function getTabs(): array { return [ 'all'=>Tab::make('nnnnnnn'),//this method does not work ]; } protected function getTableColumns(): array { return [ TextColumn::make('libelle_produit')->label('Produit'), TextColumn::make('reference')->label('REFERENCE'), ]; } public function getTitle(): string { return $this->record->libelle_categorie;; } }Beta Was this translation helpful? Give feedback.
All reactions