Toggle Class

[edit]toggle( effect, [options], [speed], [callback] ) The enhanced toggle method optionally accepts jQuery UI advanced effects. Uses a specific effect on an element to toggle the element if the first argument is an effect string.

Namespace: SharpKit.jQuery.UI.Controls

Constructors

Name Description
Toggle(JsString, ToggleOptions) Creates a new instance of Toggle
Toggle(JsString) Creates a new instance of Toggle

Properties

Name Description
callback A function that is called after the effect is completed. Default: null
effect The effect to be used. Possible values: 'blind', 'clip', 'drop', 'explode', 'fold', 'puff', 'slide', 'scale', 'size', 'pulsate'. Default: null
options A object/hash including specific options for the effect. Default: null
speed A string representing one of the three predefined speeds ("slow", "normal", or "fast") or the number of milliseconds to run the animation (e.g. 1000). Default: null Types: String, Number
© Copyright 2005-2011 SharpKit. All rights reserved.