How to create a chat layout

Re-posting from discord:

I am building a “chat interface” that I want to add things from the bottom of the screen rather than from the top. Basically as I add messages I want them to show up at the bottom and stacking upwards. Any ideas how could build a layout like that?

1 Like

You can reverse the items array with a small expression:

Then you can add a little function that scrolls to the last index, when you get a new message.

Outputs.LastItem = Inputs.Items.length-1
1 Like