Adel
Adel
FFilament
Created by Adel on 6/30/2024 in #❓┊help
Dynamic field type and column type
is it possible to change field type dynamically based on some condition? also when showing the value of this field on table column how to show the data based on that condition? ex. the field could be list, text or boolean. so if the user choose list a multi-select field with be shown, or if he choose a boolean the same field will become a checkbox, etc. the same field value will be shown on table column so if the data type was list then list of badges will be show and if type was boolean an check mark icon will be show.
2 replies
FFilament
Created by Adel on 5/14/2024 in #❓┊help
use filamentphp layout in livewire component
How can I use the same filamentphp layout in standalone livewire component?
view: resources/views/components/layouts/app.blade.php

<!DOCTYPE html>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">

<title>{{ $title ?? 'Page Title' }}</title>

@filamentStyles
</head>
<body>
{{ $slot }}

@filamentScripts
</body>
</html>
view: resources/views/components/layouts/app.blade.php

<!DOCTYPE html>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">

<title>{{ $title ?? 'Page Title' }}</title>

@filamentStyles
</head>
<body>
{{ $slot }}

@filamentScripts
</body>
</html>
in Livewire Component:
public function render()
{
return view('livewire.view')
->layout('components.layouts.app');
}
public function render()
{
return view('livewire.view')
->layout('components.layouts.app');
}
5 replies
FFilament
Created by Adel on 4/20/2024 in #❓┊help
Builder blocks labels without count if maxItems = 1
how to remove the counter from the block label if the maxItems was limited to one item?
2 replies
FFilament
Created by Adel on 4/14/2024 in #❓┊help
Show array of urls in ImageEntry
How to show list of images stored as array of urls ['url', 'url', ...] in ImageEntry?
5 replies
FFilament
Created by Adel on 3/24/2024 in #❓┊help
Table layout grid more than one column in mobile
how to show more than one column when using table grid on mobile? it is only showing one column in mobile
2 replies
FFilament
Created by Adel on 3/1/2024 in #❓┊help
disable single bulk action if one of the records is not applicable
I am trying to conditionally show/hide bulk actions (per action) so that if the user selected some records not applicable for that action
3 replies
FFilament
Created by Adel on 2/6/2024 in #❓┊help
Relation manager tabs to be in the top of the page instead of the bottom
is is possible to have Relation manager tabs to be in the top of the page instead of the bottom. so the main tab will be the form itself and the other tabs to be the relation manager tabs?
3 replies
FFilament
Created by Adel on 2/2/2024 in #❓┊help
Add Action to custom widget
I am trying to use actions in custom widget following the docs below, but the modal is not showing https://filamentphp.com/docs/3.x/widgets/adding-a-widget-to-a-blade-view
use Filament\Actions\Concerns\InteractsWithActions;
use Filament\Actions\Contracts\HasActions;

class Timeline extends Widget implements HasActions, HasForms
{
use InteractsWithActions;
use InteractsWithForms;

public function testAction()
{
return Action::make('test')
->requiresConfirmation();
}

}
use Filament\Actions\Concerns\InteractsWithActions;
use Filament\Actions\Contracts\HasActions;

class Timeline extends Widget implements HasActions, HasForms
{
use InteractsWithActions;
use InteractsWithForms;

public function testAction()
{
return Action::make('test')
->requiresConfirmation();
}

}
<x-filament-widgets::widget>
<x-filament::section>

<x-filament::button wire:click="testAction">
Test Actiom
</x-filament::button>

<x-filament-actions::modals />
</x-filament::section>
</x-filament-widgets::widget>
<x-filament-widgets::widget>
<x-filament::section>

<x-filament::button wire:click="testAction">
Test Actiom
</x-filament::button>

<x-filament-actions::modals />
</x-filament::section>
</x-filament-widgets::widget>
2 replies
FFilament
Created by Adel on 12/23/2023 in #❓┊help
how to combine live() with money mask()
how to combine live() with mask(RawJs::make('$money($input)')). when I combine them together the money separating comma is not shown in the correct place ex. when I type 100000 I am getting 100,0000
4 replies
FFilament
Created by Adel on 11/15/2023 in #❓┊help
broken UI
No description
2 replies
FFilament
Created by Adel on 11/11/2023 in #❓┊help
multiple column type for the same column
I have dynamic feature builder which will be attached to resource. these features can have different types (select, text, checkbox). I want to show the value of these features based on the feature type. ex. if the feature is of type checkbox I want to show ToggleColumn but if the type is text I want to show TextColumn. how to achieve this in filament?
3 replies
FFilament
Created by Adel on 10/30/2023 in #❓┊help
Refresh/Re-create field?
is there a way to destory and or re-create the field after page load?
3 replies
FFilament
Created by Adel on 10/7/2023 in #❓┊help
How to open new repeaters to the next column instead of new row?
How to open new repeaters to the next column instead of new row?
5 replies
FFilament
Created by Adel on 10/6/2023 in #❓┊help
is it possible to change logo programmatically?
I want to change logo per logged in user. is it possible?
3 replies
FFilament
Created by Adel on 9/17/2023 in #❓┊help
Perform some logic after create in relation manager?
how to perform some logic after creating a relation through a relation manager? ex. upload file to another server
4 replies
FFilament
Created by Adel on 8/29/2023 in #❓┊help
does RelationManager support navigating to view instead of modal view?
does RelationManager support navigating to view instead of modal view?
4 replies