slamx_
slamx_
FFilament
Created by slamx_ on 9/23/2024 in #❓┊help
Extra Class for Table Row
Is it possible to add a extra class based on the attribute in a row for the whole row? To mark them with a color for example?
6 replies
FFilament
Created by slamx_ on 8/27/2024 in #❓┊help
Not all Select options are displayed
If I have a list with up to 100 options in a selection, I cannot see all of them in the pop-up list. Any tip to fix?
7 replies
FFilament
Created by slamx_ on 7/15/2024 in #❓┊help
Default date time picker value
when I use ->default() for a DateTimePicker, it has no effect. Any solutions?
DateTimePicker::make('start')->default(now())
DateTimePicker::make('start')->default(now())
3 replies
FFilament
Created by slamx_ on 7/15/2024 in #❓┊help
Get Form value inside Tabs
When I use a tab layout for a form, the transfer of a value does not work between two tabs - how can I fix this?
Tabs\Tab::make('Erinnerungen')
->schema([
Select::make('assigned')
->label(__('Assigned'))
->multiple()
->live()
->afterStateUpdated(function (\Filament\Forms\Set $set, $state) {
$set('user_group', null);
$set('select_all', false);
})
->options(portaluser()->userOptions()),
])
Tabs\Tab::make('Reminder')
->schema([
Repeater::make('reminder')
->label('')
->defaultItems(0)
->maxItems(3)
->schema([
Checkbox::make('customusers')
->label(__('Reciver'))
->live(),
Select::make('users')
->label(__('Reciver'))
->multiple()
->default(function(Get $get){
dd($get('assigned'), $get('title')); ## returns null
})
Tabs\Tab::make('Erinnerungen')
->schema([
Select::make('assigned')
->label(__('Assigned'))
->multiple()
->live()
->afterStateUpdated(function (\Filament\Forms\Set $set, $state) {
$set('user_group', null);
$set('select_all', false);
})
->options(portaluser()->userOptions()),
])
Tabs\Tab::make('Reminder')
->schema([
Repeater::make('reminder')
->label('')
->defaultItems(0)
->maxItems(3)
->schema([
Checkbox::make('customusers')
->label(__('Reciver'))
->live(),
Select::make('users')
->label(__('Reciver'))
->multiple()
->default(function(Get $get){
dd($get('assigned'), $get('title')); ## returns null
})
5 replies
FFilament
Created by slamx_ on 7/14/2024 in #❓┊help
Get Resource Page Type
Is it possible to get the current resource page type as parameter for a FormInput Field like the label for example:
->label(function(ResourcePage $page){
if($page == 'create'){ return 'Specific'; } else { return 'Standard'; }
})
->label(function(ResourcePage $page){
if($page == 'create'){ return 'Specific'; } else { return 'Standard'; }
})
3 replies
FFilament
Created by slamx_ on 7/10/2024 in #❓┊help
Error FileUpload Preview
In the current version in the FileUpload component, the APP_URL is tried to be called with www. for the preview of the file, but the app runs without www in the url and is also configured as such in the APP_URL. Is it possible to adjust this?
5 replies
FFilament
Created by slamx_ on 7/2/2024 in #❓┊help
Change Filament Standard Classnames
Hey is it possible to rename the filament classes via method or replacements?
2 replies
FFilament
Created by slamx_ on 6/9/2024 in #❓┊help
Change active Tab via callback
Is it possible to change the Tab by dynamic value? I want to use Icons on the front-end to open a form inside a modal and want to show the selected Tab? Maybe something like: $this->form->getComponent('tabCompName')->activeTab(3)
4 replies
FFilament
Created by slamx_ on 6/2/2024 in #❓┊help
Move Searchbar to Sidebar
Is it possible to add the searchbar on top of the Sidebar? The reason for this move is, that we add a notification tool inside the Topbar and on mobile there is not enough space for both, searchbar and notification badge.
6 replies
FFilament
Created by slamx_ on 6/2/2024 in #❓┊help
Setup Section width
Is it possible to setup a width for the first Section inside the Split View Component?
7 replies
FFilament
Created by slamx_ on 5/30/2024 in #❓┊help
live() not working inside Tabs
If I use live for a select and the Get on hidden for a text input, I have the problem that this does not work within a tab form, but it does work outside.
3 replies
FFilament
Created by slamx_ on 5/27/2024 in #❓┊help
False/Null value not inside getState
In v2 the Form State of a toggle send also a false/null state inside the getState() function. In v3 they don't - is it possible to change inside the global form component settings? The Form field is disabled based on a condition.
4 replies
FFilament
Created by slamx_ on 5/27/2024 in #❓┊help
Add class to Layout Grid
Is it possible to add a class to the Grid Layout Component?
9 replies
FFilament
Created by slamx_ on 5/24/2024 in #❓┊help
How to call function inside custom form field
I'm new in writing a custom form field. I watched the laracast from Dan but I want to trigger some custom functions inside the Field Class. I tried a regular wire:click with naming the method but I get the following response: Unable to call component method. Public method [$example] not found on component This is my example form field: namespace App\Forms\Components; use Filament\Forms\Components\Field; class CloudFileSelect extends Field { protected string $view = 'forms.components.cloud-file-select'; public function example() { dd('example'); } } And this is the view: <x-dynamic-component :component="$getFieldWrapperView()" :field="$field" > <div class="z-10" x-data="{ state: $wire.$entangle('{{ $getStatePath() }}') }"> <button class="button hover:cursor-pointer" type="button" wire:click="example()">Open Example</button> </div> </x-dynamic-component> I would be happy if someone can help me or give me a good source with a comprehensive example for writing my own field.
60 replies
FFilament
Created by slamx_ on 5/24/2024 in #❓┊help
Fileupload Bug view
No description
4 replies
FFilament
Created by slamx_ on 5/23/2024 in #❓┊help
extraFieldWrapperAttributes does not exist
Hey I'm a bit confused, I try to use extraFieldWrapperAttributes on a TextInput like in the docs: https://filamentphp.com/docs/3.x/forms/fields/getting-started#adding-extra-html-attributes But I get the response: Method Filament\Forms\Components\TextInput::extraFieldWrapperAttributes does not exist.
5 replies
FFilament
Created by slamx_ on 5/23/2024 in #❓┊help
Custom Listeners in v3
I want to create a dispatch inside a Form Field Action (like repeater::createItem), but how I can access the livewire instance like here in v2? $livewire->emit('newRepeaterItemID', $newUuid); I tried it via component, but it didn't work. $component->dispatch('newRepeaterItemID', $newUuid); Any Ideas how convert this v2 into v3? Maybe I'm on the wrong path 🙏 Here is a v2 Code-Snippet: $this->registerListeners([ 'repeater::createItem' => [ function (Repeater $component, string $statePath): void { if ($statePath !== $component->getStatePath()) { return; } $newUuid = (string) Str::uuid(); $livewire = $component->getLivewire(); data_set($livewire, "{$statePath}.{$newUuid}", []); $component->getChildComponentContainers()[$newUuid]->fill(); $component->collapsed(false, shouldMakeComponentCollapsible: false); $livewire->emit('newRepeaterItemID', $newUuid); $livewire->emit('newRepeaterItem', $statePath); }, ],
2 replies
FFilament
Created by slamx_ on 5/16/2024 in #❓┊help
Exclude from live()
Is it possible to exclude single form items from Form reload when using ->live()?
2 replies
FFilament
Created by slamx_ on 5/16/2024 in #❓┊help
Fileupload - Error divison by zero
I use the following code for fileupload customization, but when I use Livewire\Features\SupportFileUploads\TemporaryUploadedFile I get a "divison by zero" error. FileUpload::make('avatar') ->label('Avatar Upload') ->disk('s3') ->image() ->visibility('private') ->maxSize(1024) ->preserveFilenames() ->imageResizeTargetHeight(600) ->getUploadedFileNameForStorageUsing(function (TemporaryUploadedFile $file): string { // store new file $oriName = $file->getClientOriginalName(); $storeName = $file->getFilename(); $this->userAvatar = [ 'user_id' => auth()->ufile()->id, 'file_name' => $oriName, 'file_path' => auth()->ufile()->filePath() . '/' . $storeName, 'is_public' => false, 'categories' => ['Avatar'], 'upload' => ['Avatar'], ]; return (string) str($file->getFilename()); }) ->directory(auth()->ufile()->filePath()),
3 replies
FFilament
Created by slamx_ on 4/11/2024 in #❓┊help
IconColumn display error v3
No description
17 replies