ListViewPlus updated to V3.
May I please use this on an app that will published to the play store?
And also, how do I jump to the last message of the list?
Yes.
You need to know the length of the list and use a JumpTo or ScrollTo block.
1: Tysm
2: The thing is the lengh on the list on my app will vary, and will not allways have the same items, is it possible to jump to the bottom of the list no matter how many items there are?
You could determine the length of the list with this block, but I don't know how you would scroll to the last thing. You could put this into an index parameter some block to reference the last item in the list, but again I don't know how to scroll lists.
but what do i put on the lengh of list block? if i want to put my listview, how do i put it there? like, you know what i mean?
Yes, I can add a JumpToLast block.
or
and then you plug the variable into the block like this:
Really? Tysmm
I added some more functionality, so I have to update the extension anyway. So I'll add this simple block while I'm at it.
Not exactly as you showed. There should be ListView.Elements.
tysm, when updated, please let me know!
Updated. Instead of adding a ScrollToLast block I added an ItemCount block which returns the length of the list. You can use it with any scroll or jump block.
Kk! Tysm
i get this error tho, this is the code
What version of Companion are you using?
the most recent one i think, lemme check, i couldn't find it, idk what version it is but it was uploaded on the community by a dev on december 24 i think
Did you reset your Companion connection after uploading a new version of the extension? After adding or updating an extension in a project, you should always reset your connection.
I checked. The block works properly.
Oh, I didnt, maybe its that, let me try!