Thanks for the replies. I just wanted to automate the implementation of the widget.
On Jun 21, 6:25 pm, Kevin Dalman <[email protected]> wrote: > If you want to resize the Accordion, then why not just bind the resize > command to whatever event you want? > > For example, if you to resize the accordion whenever the window > resizes ... > > $(window).resize( $('#myAccordion').accordion('resize') ); > > You can add a call to resize to any event or to custom code you may be > using to resize its container. I use this method myself - works > perfectly. > > Why do you want to extend the widget rather than just calling it from > your own function as needed? > > /Kevin > > On Jun 17, 3:39 am,Neil Craig<[email protected]> wrote: > > > How would one go about extending a function/method of a widget without > > re-writing it? > > > Basically I want to add something to the "_init" function but without > > duplicating the code just to add an statement to the end of it. > > > I want to add the "resize" method of the accordion as a handler to the > > document resize event. Currently, it is not sensitive to changes in > > the container of accordions using the fillSpace option. > > > I would like to know how one should approach such tasks, not just for > > this scenario, but others as well. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "jQuery UI" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/jquery-ui?hl=en -~----------~----~----~----~------~----~------~--~---
