listview and getSelected() - get selected nodes

General issues related to the use of Metro 4
Post Reply
Posts: 1
Joined: Wed Aug 29, 2018 8:28 am
Status: Offline

listview and getSelected() - get selected nodes

Post by carlosamadeo » Wed Aug 29, 2018 8:32 am

I have been trying to figure this out, but to no avail.

If I have a listview with a bunch of items (nodes) and the user clicks on one of the items, how can I know what item it is?
I tried going over the source code, but this thing is definitely above my paygrade.

Does anyone have any examples on how this is done? It be greatly appreciated.

User avatar
Site Admin
Posts: 238
Joined: Mon Apr 09, 2018 6:19 pm
Location: Kiev, Ukraine
Status: Offline

Post by olton » Wed Aug 29, 2018 8:53 am

GetSelected return checked nodes. Selected mode enable with attribute data-selected="true"

Post Reply