Table with differents row content

Hi. I have an ISSUE model , with a relationshipManager on "activities". Each activity can be of different "types" (comment, attachment, priority change, etc) I want my table to display different data for each type. Is it possible? Thanks
2 Replies
Dennis Koch
Dennis Koch3mo ago
Certainly. The question is how/what you want to display. You can conditionally render different content for the cells by useing ->getStateUsing() or formatStateUsing() or you can use a ViewColumn and just style it yourself Example ->getStateUsing(fn ($record) => $record->state == 1 ? $record->state1 : $record->state2)
PabloZagni
PabloZagni3mo ago
I'll try a ViewColumn and let u know. Thanks!
Want results from more Discord servers?
Add your server