What would be the best way to display real time text (don’t worry about its collection, just the display of it) ?
I was going to use a textarea but as the text gets added to and eventually goes off the bottom I can’t seem to keep the latest line visible (ie programmatically scroll down to the last line). I just get what’s already there and a vertical scroll bar which requires manually moving.
This is a great way to display log feeds and other line-based output. I used it in the SSH Client app I wrote when you were wondering about SSHing into your machines remotely without needing to remember your laptop (this thread: Browser Based SSH).
Clone it (click the ‘open in Anvil’ in my post, you’ll get a copy of the app in your account.)
Open the app you want to use it in and click on ‘Dependencies’ in the Gear Menu
You’ll see a dropdown entitled ‘Add a Dependency’. Find your clone of ScrollTextArea and select it.
When you close that popup you should now see ScrollTextArea in the Toobox under Custom Components. You can drag-and-drop any number of ScrollTextAreas onto your app: