Umar Farooq
Umar Farooq
FFilament
Created by Umar Farooq on 12/12/2024 in #❓┊help
How to set the default selected records in the filament table?
63 replies
FFilament
Created by Umar Farooq on 12/12/2024 in #❓┊help
How to set the default selected records in the filament table?
On the first page load, it's selected. When I click the selectable checkbox in the table header, it selects 2 rows from the table, but it shows 3 records selected even though there are only 2 items (rows) in the table.
63 replies
FFilament
Created by Umar Farooq on 12/12/2024 in #❓┊help
How to set the default selected records in the filament table?
@Mohamed Ayaou no, I only set 1 item in the array
63 replies
FFilament
Created by Umar Farooq on 12/12/2024 in #❓┊help
How to set the default selected records in the filament table?
No description
63 replies
FFilament
Created by Umar Farooq on 12/12/2024 in #❓┊help
How to set the default selected records in the filament table?
@Leandro Ferreira Thanks for the help. Let me check if it works
63 replies
FFilament
Created by Umar Farooq on 12/12/2024 in #❓┊help
How to set the default selected records in the filament table?
I believe there's no such function as defaultSelected in the Table class not sure how it's work for you. @Takashi
63 replies
FFilament
Created by Umar Farooq on 12/12/2024 in #❓┊help
How to set the default selected records in the filament table?
anyone?
63 replies
FFilament
Created by Umar Farooq on 12/12/2024 in #❓┊help
How to set the default selected records in the filament table?
I checked the table class but couldn't find any function that handles this functionality
63 replies
FFilament
Created by Umar Farooq on 12/12/2024 in #❓┊help
How to set the default selected records in the filament table?
@Takashi what is the function name?
63 replies
FFilament
Created by Umar Farooq on 12/12/2024 in #❓┊help
How to set the default selected records in the filament table?
yes
63 replies
FFilament
Created by Umar Farooq on 12/12/2024 in #❓┊help
How to set the default selected records in the filament table?
anyone please?
63 replies
FFilament
Created by Umar Farooq on 12/12/2024 in #❓┊help
How to set the default selected records in the filament table?
No description
63 replies
FFilament
Created by Umar Farooq on 12/12/2024 in #❓┊help
How to set the default selected records in the filament table?
yes
63 replies
FFilament
Created by itsmejyv on 9/7/2024 in #❓┊help
how to add recaptcha in filament login form?
12 replies
FFilament
Created by Umar Farooq on 7/29/2024 in #❓┊help
Add a loader when the pagination changes inside the table
find a workaround
<x-filament-panels::page>
<div wire:loading.class="opacity-50"
wire:target="tableFilters,applyTableFilters,resetTableFiltersForm, nextPage, gotoPage, previousPage, tableRecordsPerPage"
class="relative">
{{ $this->table }}

<div
wire:loading
wire:target="tableFilters,applyTableFilters,resetTableFiltersForm, nextPage, gotoPage, previousPage, tableRecordsPerPage"
class="absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2" style="left: 50%;">
<x-filament::loading-indicator class="h-10 w-10 text-primary-500"/>
</div>
</div>
</x-filament-panels::page>
<x-filament-panels::page>
<div wire:loading.class="opacity-50"
wire:target="tableFilters,applyTableFilters,resetTableFiltersForm, nextPage, gotoPage, previousPage, tableRecordsPerPage"
class="relative">
{{ $this->table }}

<div
wire:loading
wire:target="tableFilters,applyTableFilters,resetTableFiltersForm, nextPage, gotoPage, previousPage, tableRecordsPerPage"
class="absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2" style="left: 50%;">
<x-filament::loading-indicator class="h-10 w-10 text-primary-500"/>
</div>
</div>
</x-filament-panels::page>
5 replies
FFilament
Created by taz on 7/30/2024 in #❓┊help
FIlament Blade components outside filament. Change default primary color
inside the service provider you can change the color
->colors([
'primary' => Color::Amber,
])
->colors([
'primary' => Color::Amber,
])
9 replies
FFilament
Created by Umar Farooq on 7/29/2024 in #❓┊help
Add a loader when the pagination changes inside the table
@Dan Harrin
5 replies
FFilament
Created by Umar Farooq on 7/22/2024 in #❓┊help
Select component Allow Multiple select
@Dennis Koch
5 replies
FFilament
Created by Daniele on 7/23/2024 in #❓┊help
Multiple columns from the same relationship in an ExportAction
maybe use
ExportColumn::make('id')
->exists(['posts' => fn (Builder $query) => $query->where('type', 'image')])
->label('Has images')
ExportColumn::make('id')
->exists(['posts' => fn (Builder $query) => $query->where('type', 'image')])
->label('Has images')
6 replies
FFilament
Created by Umar Farooq on 7/22/2024 in #❓┊help
Select component Allow Multiple select
I want to clear the search input and submit the form
->getSearchResultsUsing(static function (
?string $search,
Forms\Components\Select $component,
Forms\Get $get,
) use($supplierId) {
$attribute = $get('attribute');

if ($attribute) {
if (!str_contains($search, ',')) {
return static::filterSearchValues($get, $supplierId, search: $search);
}

$searchArray = array_map('trim', explode(',', $search));

$filters = static::filterSearchValues(
$get,
$supplierId,
array_filter($searchArray, function($value) { return $value !== ''; })
);

$component->state([
...array_keys($filters->toArray()),
...$component->getState(),
]);

return $filters;
}

return [];
})
->getSearchResultsUsing(static function (
?string $search,
Forms\Components\Select $component,
Forms\Get $get,
) use($supplierId) {
$attribute = $get('attribute');

if ($attribute) {
if (!str_contains($search, ',')) {
return static::filterSearchValues($get, $supplierId, search: $search);
}

$searchArray = array_map('trim', explode(',', $search));

$filters = static::filterSearchValues(
$get,
$supplierId,
array_filter($searchArray, function($value) { return $value !== ''; })
);

$component->state([
...array_keys($filters->toArray()),
...$component->getState(),
]);

return $filters;
}

return [];
})
5 replies