TheNastyPasty
TheNastyPasty
FFilament
Created by TheNastyPasty on 6/7/2024 in #❓┊help
How to make a section horizontally scrollable?
Section::make()
->extraAttributes(['class' => 'overflow-x-auto'])
->visible(true)
->schema([
// Repeatableentries
])->columns(8)
Section::make()
->extraAttributes(['class' => 'overflow-x-auto'])
->visible(true)
->schema([
// Repeatableentries
])->columns(8)
4 replies
FFilament
Created by TheNastyPasty on 6/7/2024 in #❓┊help
How to make a section horizontally scrollable?
Thanks added it but still everything breaks? This is how my section looks
4 replies
FFilament
Created by TheNastyPasty on 6/7/2024 in #❓┊help
Only show label in a infolist
You mean like so
TextEntry::make('gross_rent')
->hiddenLabel(true)
->state('Gross Rent'),
TextEntry::make('gross_rent')
->hiddenLabel(true)
->state('Gross Rent'),
16 replies
FFilament
Created by TheNastyPasty on 6/7/2024 in #❓┊help
Only show label in a infolist
No description
16 replies
FFilament
Created by TheNastyPasty on 6/7/2024 in #❓┊help
Only show label in a infolist
This aligns better
TextEntry::make('gross_rent')
->hiddenLabel(true)
->formatStateUsing(fn() => 'Gross Rent'),
TextEntry::make('gross_rent')
->hiddenLabel(true)
->formatStateUsing(fn() => 'Gross Rent'),
16 replies
FFilament
Created by TheNastyPasty on 6/7/2024 in #❓┊help
Only show label in a infolist
TextEntry::make('gross_rent')
->hiddenLabel(true)
->formatStateUsing(fn() => 'Vacancy'),
TextEntry::make('gross_rent')
->hiddenLabel(true)
->formatStateUsing(fn() => 'Vacancy'),
This works but is most probably not optimal?
16 replies
FFilament
Created by TheNastyPasty on 6/7/2024 in #❓┊help
Only show label in a infolist
I am only doing it with a repeatableentry to get the same layout and to align the labels with the values in the next repeatable entry
16 replies
FFilament
Created by TheNastyPasty on 6/7/2024 in #❓┊help
Only show label in a infolist
Textentry gives me the relation
TextEntry::make('')->label('Gross Rent'),
TextEntry::make('')->label('Gross Rent'),
16 replies
FFilament
Created by TheNastyPasty on 6/7/2024 in #❓┊help
Only show label in a infolist
Does not work in a infolist. Gives me
Filament\Infolists\ComponentContainer::Filament\Infolists\Concerns\{closure}(): Argument #1 ($component) must be of type Filament\Infolists\Components\Component, Filament\Forms\Components\Placeholder given
Filament\Infolists\ComponentContainer::Filament\Infolists\Concerns\{closure}(): Argument #1 ($component) must be of type Filament\Infolists\Components\Component, Filament\Forms\Components\Placeholder given
16 replies
FFilament
Created by TheNastyPasty on 6/7/2024 in #❓┊help
Is it somehow possible to access the value of a different field?
Somehow the index does here not increase
$index = explode('.', $component->getStatePath())[1];
$data = $component
->getContainer()
->getParentComponent()
->getState()[$index];

return $data['operating_expenses_name'];
$index = explode('.', $component->getStatePath())[1];
$data = $component
->getContainer()
->getParentComponent()
->getState()[$index];

return $data['operating_expenses_name'];
10 replies
FFilament
Created by TheNastyPasty on 6/7/2024 in #❓┊help
Is it somehow possible to access the value of a different field?
Thanks I will try it 🙂
10 replies
FFilament
Created by TheNastyPasty on 6/7/2024 in #❓┊help
Is it somehow possible to access the value of a different field?
If I do so I get
Typed property Filament\Forms\Components\Component::$container must not be accessed before initialization
Typed property Filament\Forms\Components\Component::$container must not be accessed before initialization
TextEntry::make('operating_expenses_cost')
->label(function (Get $get) {
return $get('operating_expenses_name');
})
->inlineLabel(true)
->money('AED'),
TextEntry::make('operating_expenses_cost')
->label(function (Get $get) {
return $get('operating_expenses_name');
})
->inlineLabel(true)
->money('AED'),
10 replies
FFilament
Created by TheNastyPasty on 6/7/2024 in #❓┊help
Is it somehow possible to access the value of a different field?
Thanks, but if I use $record I dont have access to the operating_expenses array I need to access the array in the specific iteration to get the corresponding name for the cost
10 replies
FFilament
Created by TheNastyPasty on 6/3/2024 in #❓┊help
Is it possible to have label and value beside each other?
It is
->inlineLabel()
->inlineLabel()
but thanks anyways
4 replies
FFilament
Created by TheNastyPasty on 5/31/2024 in #❓┊help
Print array with Repeatableentry, how to?
Wow thanks for the explaination
31 replies
FFilament
Created by TheNastyPasty on 5/31/2024 in #❓┊help
Print array with Repeatableentry, how to?
and otherwise? is there something like "other_income.data"?
31 replies
FFilament
Created by TheNastyPasty on 5/31/2024 in #❓┊help
Print array with Repeatableentry, how to?
Yeah sure but how to do that in a infolist/repeatableentry?
31 replies
FFilament
Created by TheNastyPasty on 5/31/2024 in #❓┊help
Print array with Repeatableentry, how to?
Ok I dont understand, so it would be better for me to remove the block and only use the repeater and then the repeatableentry should work as expected?
31 replies
FFilament
Created by TheNastyPasty on 5/31/2024 in #❓┊help
Print array with Repeatableentry, how to?
different blocks with different headings
31 replies
FFilament
Created by TheNastyPasty on 5/31/2024 in #❓┊help
Print array with Repeatableentry, how to?
Because the Form is more structured and organized
31 replies