Documentation is a little confusion, at least for dojo 1.9
Found several solutions for this:
Either use the target property (not the moveTo) so the span above would be
<span id="refreshButton"
data-dojo-type="dojox/mobile/ToolBarButton"
data-dojo-props="icon: 'img/refresh.png', target: 'details'"
style="float:right;"></span>
or in code
var t = new ListItem(data);
t.target = "details";
explicit by you with the use of the dojox/app
transitionToView
function
beforeActivate: function (previousView, data) {
(...)
var t = new ListItem(data);
//t.target = ""; this will be handle in the onClick event
t.clickable = true;
t.placeAt(this.list, "last");
t.onClick = lang.hitch(this, function () {
this.app.transitionToView(this.domNode, {
target: "details" });
});
}
or through the TransitionEvent module, this seems to be the right way
beforeActivate: function (previousView, data) {
(...)
var t = new ListItem(data);
//t.target = ""; this will be handle in the onClick event
t.clickable = true;
t.placeAt(this.list, "last");
t.onClick = lang.hitch(this, function () {
new TransitionEvent(this.domNode, {
target: "details",
transition: "slide",
transitionDir: 1
}).dispatch();
});
}