You can use the formatstring widget inside the listview. Below is an example where you can jump to a specific class:
<button class="btn-link" onclick="document.getElementsByClassName('${class}')[0].scrollIntoView();">${name}</button>
if you want to target a specific listview item:
<button class="btn-link" onclick="document.getElementsByClassName('mylistview')[0].firstChild.children[${position}].scrollIntoView();">${name}</button>
Is this maybe what you want?
I tried this with widgets just now, I think it is possible. For the following page in modeler:
./anchorButton.mpk
renders a <button>
with a hyperlink with that #
thingamabob that redirects to a section of page. The part after #
is from the object guid
.
./anchorLink.mpk
creates an <a>
with a name attribute of #
followed by the guid
of the object.
So then you can at least interpage navigate between same page templategrid items or anything context containers with this combination of widgets in
anyways...looks like it works
I think you need to write some custom javascript for this. Here are a couple of links that might be useful.