Constructordojo.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)
parametertypedescription
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();

Jump to PropertiesFunctionsBack to top

Functionhide(delay)
Toggle the node to hidden
The function that returns the dojo._Animation to hide the node
Functionshow(delay)
Toggle the node to showing
The function that returns the dojo._Animation to show the node

Jump to FunctionsPropertiesBack to top

in milliseconds to run the hide Animation
the node to toggle
in milliseconds to run the show Animation