F
Filament15mo ago
toeknee

How do we get the fields relationship value in visible?

in formatStateUsing we use $state, but using $record in visible, there is no relation value so we cannot use that. What's the approach to render an icon where there is a value in a relationship? company.id if it has one, render link to the company.
2 Replies
Dennis Koch
Dennis Koch15mo ago
Isn't there a company_id column? Btw. it doesn't make sense to "hide" a column based on a record. Because that would break the table layout. Just switch the Icon depending on the state
toeknee
toeknee15mo ago
Ok I'll use formatState, I was assuming visible would hide the column but render the container. makes sense!