Skip to main content

Search and Top Navigation

#3533 closed enhancement (duplicate)

Opened October 31, 2008 03:45PM UTC

Closed July 12, 2010 12:19PM UTC

Last modified October 03, 2012 03:36PM UTC

Add accordion "duration" option

Reported by: sunshine Owned by: jzaefferer
Priority: major Milestone: 1.6
Component: ui.accordion Version: 1.6rc2
Keywords: accordion duration speed Cc:
Blocked by: Blocking:

Many widgets which perform animation allow the duration option to be specified either at ''construction'' time or via the table, however, accordion does not. It instead hard-codes durations in its ui.accordion.animations table in a way which can not be easily overridden. It would be useful if accordion, like other widgets, would allow animation speed to be configured by the client.

It is true that one can ''subclass'', for instance, the "slide" animation to change its duration:

$.extend($.ui.accordion.animations, {
  fastslide: function(options) {
    $.ui.accordion.animations.slide(options, { duration: 100 }); }

However, this approach is neither obvious, documented, nor consistent with other widgets which allow duration to be specified directly.

Attachments (0)
Change History (3)

Changed January 04, 2009 06:13PM UTC by scottgonzalez comment:1


Changed July 12, 2010 12:19PM UTC by scottgonzalez comment:2

resolution: → duplicate
status: newclosed

This will be handled by #3772.

Changed October 03, 2012 03:36PM UTC by scottgonzalez comment:3

milestone: 1.next1.6