A simple dojo.Animation
toggler API.
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. All available members are mixed into
these animations from the constructor (for example, node
,
showDuration
, hideDuration
).
Parameter | Type | Description |
---|---|---|
args | undefined |
See the dojo/fx/Toggler reference documentation for more information.
1 2 3 4 5 6 7 8 9 10 | var t = new dojo/fx/Toggler({ node: "nodeId" , showDuration: 500, // hideDuration will default to "200" showFunc: dojo/fx/wipeIn, // hideFunc will default to "fadeOut" }); t.show(100); // delay showing for 100ms // ...time passes... t.hide(); |
Toggle the node to hidden
Parameter | Type | Description |
---|---|---|
delay | Integer |
Optional Amount of time to stall playing the hide animation |
The function that returns the dojo.Animation
to hide the node
Parameter | Type | Description |
---|---|---|
args | Object | An object with the following properties:
|
Toggle the node to showing
Parameter | Type | Description |
---|---|---|
delay | Integer |
Optional Amount of time to stall playing the show animation |
The function that returns the dojo.Animation
to show the node
Parameter | Type | Description |
---|---|---|
args | Object | An object with the following properties:
|