aspect.before(dojo, "dojox/mobile/View", function(method, args)
and if (method == performTransition)
I can set the duration to zero. But I cannot find this property (i.e. duration) in the documentation.
aspect.before(dojo, "dojox/mobile/View", function(method, args)
as you would need a local reference to the AMD module... args should likely contain the property. That said, it looks like what you want is to set the property of transition to none, https://github.com/dojo/dojox/blob/master/mobile/View.js#L270-L277
aspect.before(dojo, registry.byId("myView"), function(method, args) { if (method == "performTransition" ) ... });
? 2. as said before I cannot find in the documentation how to change the transition's duration.
require(['dojo/aspect', 'dojox/mobile/View', 'dojo/domReady!'],
function(aspect, View){
aspect.before(View, '_doTransition',
function(fromNode, toNode, transition, transitionDir){
return [fromNode, toNode, 'none', transitionDir];
}
);
}
);
ehuelsmann
Any specific error?
Wait! It seems it works in this way:
aspect.before(registry.byId('myView'), '_doTransition',
function(fromNode, toNode, transition, transitionDir){
return [fromNode, toNode, 'none', transitionDir];
}
);
I had to add this snippet for each View. Only for one it doesn't work, but perhaps there's something else - I'm trying to figure it out.
Hi Guys,
I'm using filter plugin in dojox.grid.EnhancedGrid but when i click the filter button i don't see a proper UI rather all the text and input area are overlapped.
Can any body help me why i'm getting this problem.
The css files I've included:
@import "dojo/resources/dojo.css";
@import "dojox/grid/enhanced/resources/claro/EnhancedGrid.css";
@import "dojox/grid/enhanced/resources/EnhancedGrid_rtl.css";
@import "dijit/themes/claro/claro.css";
Hello, I'm using a dojo html template and trying to render elements in a javascript array but it doesn't work inside of a <table> element. Putting the loop with a regular <div> prints everything just fine but inside a <table> fails.
This works:
<div>
{% for item in list %}
<p>item.attributes.OBJECTID</p>
{% endfor %}
</div>
This doesnt:
<table>
{% for item in list %}
<tr>
<td>item.attributes.OBJECTID</td>
</tr>
{% endfor %}
</table>
Any ideas why?