Dushmanta
Dushmanta
FFilament
Created by Dushmanta on 3/22/2024 in #❓┊help
How can I keep an icon in the column label instead of text in the table?
Thanks a lot @dissto I really appreciate the help 🙂
13 replies
FFilament
Created by Dushmanta on 3/22/2024 in #❓┊help
How can I keep an icon in the column label instead of text in the table?
both worked 🙂
13 replies
FFilament
Created by Dushmanta on 3/22/2024 in #❓┊help
How can I keep an icon in the column label instead of text in the table?
Woahh! That worked, Thanks a lot. 🤜 🤛
13 replies
FFilament
Created by Dushmanta on 3/22/2024 in #❓┊help
How can I keep an icon in the column label instead of text in the table?
Yes! I want an icon instead of that Status text, so I'm wondering if it's possible.
13 replies
FFilament
Created by Dushmanta on 3/22/2024 in #❓┊help
How can I keep an icon in the column label instead of text in the table?
IconColumn::make('plus')
->icon('heroicon-o-plus')
IconColumn::make('plus')
->icon('heroicon-o-plus')
I've done that like this but in the label Plus shows but I want the icon to appear
13 replies
FFilament
Created by thyk123 on 3/19/2024 in #❓┊help
Route [participants.edit] not defined.
@thyk123
public static function getPages(): array
{
return [
'index' => ListUsers::route('/'),
'create' => CreateUser::route('/create'),
'edit' => EditUser::route('/{record}/edit'),
];
}
public static function getPages(): array
{
return [
'index' => ListUsers::route('/'),
'create' => CreateUser::route('/create'),
'edit' => EditUser::route('/{record}/edit'),
];
}
It should look like this, don't forget to add the {record}
27 replies
FFilament
Created by thyk123 on 3/19/2024 in #❓┊help
Route [participants.edit] not defined.
Share a snippet of your code and do try php artisan optimize:clear
27 replies
FFilament
Created by Dushmanta on 3/12/2024 in #❓┊help
Action button not working on first click
Cool! but I think we've to use nested action cause the 2nd action comes to picture after the 1st being clicked 😦
7 replies
FFilament
Created by Dushmanta on 3/12/2024 in #❓┊help
Action button not working on first click
Noted and thanks for your response
7 replies
FFilament
Created by Dushmanta on 3/18/2024 in #❓┊help
Is there anyway we can specify how many rows a widget takes? (or group widgets to apply grid)
Thank you for the detailed insight, btw I'm using your plugin for the column charts, it's so cool 🙂
4 replies
FFilament
Created by Alnuaimi on 12/26/2023 in #❓┊help
How do 3 Pie Chart widgets in one inline
You have to give a column span value = 4 in each widget file
protected int | string | array $columnSpan = '4';
protected int | string | array $columnSpan = '4';
Also, in your page where you're calling all the 3 widgets, specify this:
public function getHeaderWidgetsColumns(): int
{
return 12;
}
public function getHeaderWidgetsColumns(): int
{
return 12;
}
5 replies
FFilament
Created by pocket.racer on 9/9/2023 in #❓┊help
Table action modal not showing up on 1st click
Thank you for your response, I've already created a post but there was no response until yesterday, so tried my luck here
22 replies
FFilament
Created by pocket.racer on 9/9/2023 in #❓┊help
Table action modal not showing up on 1st click
Sorry couldn't understand, Could you repeat what you meant? Thank you.
22 replies
FFilament
Created by pocket.racer on 9/9/2023 in #❓┊help
Table action modal not showing up on 1st click
I'm having the same issue, when the page loads, the first click doesn't work, but after one click, there are no issues.
22 replies
FFilament
Created by Dushmanta on 3/12/2024 in #❓┊help
Pagination applies to multiple table after page refresh
Although I wanted to implement this feature with Simple pagination, which didn't work, if anyone finds this, please do comment. Thank you.
4 replies
FFilament
Created by Dushmanta on 3/12/2024 in #❓┊help
Pagination applies to multiple table after page refresh
I was able to solve the issue by using - queryStringIdentifier('string') (https://filamentphp.com/docs/3.x/tables/advanced#preventing-query-string-conflicts-with-the-pagination-page) - Overriding the paginateTableQuery() function inside the widget
use Illuminate\Contracts\Pagination\CursorPaginator;
use Illuminate\Contracts\Pagination\Paginator;
use Illuminate\Database\Eloquent\Builder;
use Illuminate\Pagination\LengthAwarePaginator;
in
protected function paginateTableQuery(Builder $query): Paginator|CursorPaginator
{
$perPage = $this->getTableRecordsPerPage();

/** @var LengthAwarePaginator $records */
$records = $query->paginate(
$perPage === 'all' ? $query->count() : $perPage,
['*'],
$this->getTablePaginationPageName(),
);

return $records->onEachSide(0);
}
use Illuminate\Contracts\Pagination\CursorPaginator;
use Illuminate\Contracts\Pagination\Paginator;
use Illuminate\Database\Eloquent\Builder;
use Illuminate\Pagination\LengthAwarePaginator;
in
protected function paginateTableQuery(Builder $query): Paginator|CursorPaginator
{
$perPage = $this->getTableRecordsPerPage();

/** @var LengthAwarePaginator $records */
$records = $query->paginate(
$perPage === 'all' ? $query->count() : $perPage,
['*'],
$this->getTablePaginationPageName(),
);

return $records->onEachSide(0);
}
4 replies
FFilament
Created by ericmp on 2/5/2024 in #❓┊help
Issue Paginating Multiple Tables in Admin Dashboard
Hi! It's working after overriding the paginateTableQuery() function.
20 replies
FFilament
Created by Abi on 3/12/2024 in #❓┊help
Change the color of the Submit button on the Table Action Modal
It should work it's in the docs but limited colors
10 replies
FFilament
Created by Abi on 3/12/2024 in #❓┊help
Change the color of the Submit button on the Table Action Modal
or add a class and write the css for the class in your css file
10 replies
FFilament
Created by Abi on 3/12/2024 in #❓┊help
Change the color of the Submit button on the Table Action Modal
use Filament\Actions\Action;

Action::make('edit')
->url(fn (): string => route('posts.edit', ['post' => $this->post]))
->extraAttributes([
'class' => 'mx-auto my-8',
])
use Filament\Actions\Action;

Action::make('edit')
->url(fn (): string => route('posts.edit', ['post' => $this->post]))
->extraAttributes([
'class' => 'mx-auto my-8',
])
As written here if you're using tailwind you can dirctly write the color in the extra attribute
10 replies