Conditionally render one of two components within column

I have a table of units that have a master->slave relationship using a self referential relationship. Each row has an is_master boolean field as well as a master_id field which points to the master for slaves and to themselves for masters. I need to track whether certain commands to the master were successful. I would like to have a column in my table that uses 'master.c1_ack' value to show if the C1 command was successful. On masters I would like this to appear as a toggle, whereas on slaves I would like it to display a boolean Icon. So toggling the master will update the icon for its respective slaves. I believe I can achieve this with a custom view that handles the conditional logic but am running into issues rendering the components within the view. Is there a simple way to achieve this?
0 Replies
No replies yetBe the first to reply to this messageJoin