I'm using the Polymer Starter Kit as a base for this project.
I'm trying to make two buttons that takes users to the next and previous page inside a iron-page element.
<iron-pages selected="0">
<div>
<paper-material elevation="1">
<paper-radio-group class="layout vertical" selected="1">
<paper-radio-button name="1">1</paper-radio-button>
<paper-radio-button name="2">2</paper-radio-button>
<paper-radio-button name="3">3</paper-radio-button>
</paper-radio-group>
</paper-material>
<div class="horizontal justified layout">
<div>
<paper-button raised>Previous</paper-button>
</div>
<div>
<paper-button raised>Next</paper-button>
</div>
</div>
</div>
<div>Page 2</div>
<div>Page 3</div>
</iron-pages>
It might be worth noting that this iron-page element is placed inside the iron-page element that the Starter Kit uses to handle the menu items.
I have tried a bunch of methods to make this work. I tried changing the divs into "sections" and use the same method that the starter kit uses for the menu with data-routes, but I couldn't get that to work. I have also tried to make a function in the script file that listens for a click event but it changed page in the wrong iron-page element. It jumped to the next page in the menu.
Is it possible to just make the "Next" button change the selected value to "2" somehow?