Mikail
badge color is not reactive on table
Indeed. But I can't figure out why mine is not. I have latest Filament version.
TextInputColumn::make('discipline'),
TextColumn::make('id')
->badge()
->color(fn ($record): string => $record->discipline === 'art' ? 'danger' : ''),
8 replies
Accessing table filter
InfoListSection::make('Academic Details')
->schema([
TextEntry::make('enrollmentSchoolSession.session_title')
->label('Session'),
TextEntry::make('term_id')
->label('Term')
->getStateUsing(function (Livewire $livewire) {
$livewire = $table->getLivewire();
$filters = $livewire->tableFilters;
$filters = self::extractFilters($livewire);
$term = Term::find($filters['term_id']);
return $term ? $term->name : null;
}),
get filtered data from table to infolist15 replies
do we have a way to make table column fixed when side scrolling?
>extraHeaderAttributes([
'style' => 'position: sticky; left: 0; z-index: 1;',
'class' => 'bg-gray-50 dark:bg-gray-900',
])
->extraCellAttributes([
'style' => 'position: sticky; left: 0; z-index: 1;',
'class' => 'bg-white dark:bg-gray-900',
])
got this somewhere in answers but the background is custom so it doesn't blend with the table color.
Temp solution. It should be a core feature imo5 replies