dojo.fx.Toggler
dojo.require("dojo.fx");
defined in dojo/fx.js
class constructor for an animation toggler. It accepts a packed set of arguments about what type of animation to use in each direction, duration, etc.
Usage
function (args) (view source)
parameter | type | description |
---|---|---|
args |
Examples
Example 1
var t = new dojo.fx.Toggler({
node: "nodeId",
showDuration: 500,
// hideDuration will default to "200"
showFunc: dojo.wipeIn,
// hideFunc will default to "fadeOut"
});
t.show(100); // delay showing for 100ms
// ...time passes...
t.hide();
FunctionsBack to top

Toggle the node to hidden

The function that returns the dojo._Animation to hide the node

Toggle the node to showing

The function that returns the dojo._Animation to show the node
PropertiesBack to top
in milliseconds to run the hide Animation
the node to toggle
in milliseconds to run the show Animation