Opened 11 years ago

Closed 9 years ago

Last modified 7 years ago

#3533 closed enhancement (duplicate)

Add accordion "duration" option

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

Description

Many widgets which perform animation allow the duration option to be specified either at construction time or via the ui.foo.defaults 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.

Change History (3)

comment:1 Changed 11 years ago by Scott González

Milestone: TBD1.next

comment:2 Changed 9 years ago by Scott González

Resolution: duplicate
Status: newclosed

This will be handled by #3772.

comment:3 Changed 7 years ago by Scott González

Milestone: 1.next1.6
Note: See TracTickets for help on using tickets.