I have a ToolBarButton like such:
<span data-dojo-type="dojox/mobile/ToolBarButton"
data-dojo-props="label:'Back', moveTo:'config'" ></span>
You can see that I have the moveTo property declared as 'config' but how can I programatically change that?
I want to reuse this button but I want to call a function which will modify the value of moveTo.
Kinda like this:
<span data-dojo-type="dojox/mobile/ToolBarButton" onclick="modifyMoveTo('somePath')"
data-dojo-props="label:'Back', moveTo:'config'" ></span>