Change stack alignment based on value of listview item



image

Is it possible to change the _align from start to end using a retool transformer my goal is to align a item to the start if it is not send by me and align it to the right when it is.

I need to change the stack alignment of the message container inside the messages listview

btw it is for a whatsapp chat im making inside retool using the whatsapp api and webhooks

Jim

Hi @Gsmplus,

Thanks for reaching out! Unfortunately, those layout settings can't be set conditionally, but I can put in a feature request for that.

The only workaround I can think of is to create two of the same stack containers, but with different layout settings. You could show/hide each stack container as needed