F
Filament13mo ago
Quin.

Grouping 2 columns is it possible?

Hello! is it possible for 2 columns to be grouped together?
Tables\Columns\TextColumn::make('domain')
->searchable(),
Tables\Columns\IconColumn::make('domainextension.description')->label('Description')->translateLabel()
->tooltip(function ($record) { return $record->domainextension->description; })
->alignCenter()
->icon('heroicon-o-information-circle'),
Tables\Columns\TextColumn::make('domain')
->searchable(),
Tables\Columns\IconColumn::make('domainextension.description')->label('Description')->translateLabel()
->tooltip(function ($record) { return $record->domainextension->description; })
->alignCenter()
->icon('heroicon-o-information-circle'),
3 Replies
Dennis Koch
Dennis Koch13mo ago
Only via Split which removes the default table layout.
dissto
dissto13mo ago
@Shades. you could probably try something like this
Tables\Columns\TextColumn::make('domain')
->searchable()
->alignCenter()
->description(function ($record) {
return new HtmlString(Blade::render(
<<<EOD
<x-icon name="heroicon-o-information-circle" class="w-4 h-4 inline-flex" />
EOD
));
})
->label('Description')->translateLabel()
->tooltip(function ($record) {
return $record->domainextension->description;
}),
Tables\Columns\TextColumn::make('domain')
->searchable()
->alignCenter()
->description(function ($record) {
return new HtmlString(Blade::render(
<<<EOD
<x-icon name="heroicon-o-information-circle" class="w-4 h-4 inline-flex" />
EOD
));
})
->label('Description')->translateLabel()
->tooltip(function ($record) {
return $record->domainextension->description;
}),
if you want to retain the "table". It may not exactly be what you want but you could probably tweak it a bit more 😀
Quin.
Quin.OP13mo ago
Thank you man i will try it! Mucha gracias ❤️
Want results from more Discord servers?
Add your server