Long text table

I've a table and i have a field that contains a long text. Is it possibile to add something like a "sub row" that columspan all the column for a row? Any solutions? thanks
5 Replies
toeknee
toeknee2mo ago
No... I would use like a custom column. Popover that shows the text in that way when hovered?
Dennis Koch
Dennis Koch2mo ago
Only works with Split/Stack though
ocram82
ocram822mo ago
thanks a lot. I should try...can you guide me please for the structure: is this the correct way? thanks
public function table(Table $table): Table
{
return $table->columns([
Split::make([
ImageColumn::make('avatar')
->circular(),
TextColumn::make('name')
->weight(FontWeight::Bold)
->searchable()
->sortable(),
]),
Panel::make([
Stack::make([
TextColumn::make('phone')
->icon('heroicon-m-phone'),
TextColumn::make('email')
->icon('heroicon-m-envelope'),
]),
])->collapsible(),
]);
}
public function table(Table $table): Table
{
return $table->columns([
Split::make([
ImageColumn::make('avatar')
->circular(),
TextColumn::make('name')
->weight(FontWeight::Bold)
->searchable()
->sortable(),
]),
Panel::make([
Stack::make([
TextColumn::make('phone')
->icon('heroicon-m-phone'),
TextColumn::make('email')
->icon('heroicon-m-envelope'),
]),
])->collapsible(),
]);
}
Dennis Koch
Dennis Koch2mo ago
I haven't used it yet, but looks good to me
Want results from more Discord servers?
Add your server