if i try to open another template
with a
<button template="newtemplate.xml.js">
command
then this will only work in the first Index.xml.js template (from the sample download) but not in any other template that I selected in the Index.xml.js template
because when I update the AlertWithDescription.xml as you can see below it will launch the index2.xml.js on the 2nd button but then
automatically the first selection in the index2.xml.js is launched (like an auto click)
is this a bug or a feature? and how can it be disabled?
It would be really helpful if someone could give me an updated AlertWithDescription.xml template sample in which the buttons actually opens another template (or updates the Index Template just like "Apple Trailers App" does when you click "All Genres")
var Template = function() { return `<?xml version="1.0" encoding="UTF-8" ?>
<document>
<alertTemplate>
<title>Title</title>
<description>text.</description>
<button template="${this.BASEURL}templates/Index.xml.js" >
<text>Button 1</text>
</button>
<button template="${this.BASEURL}templates/Index2.xml.js" >
<text>Button 2</text>
</button>
</alertTemplate>
</document>`
}