google-code-export / wiquery

Automatically exported from code.google.com/p/wiquery
MIT License
1 stars 1 forks source link

Accordion setting options #174

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I see no way of altering:
Accordion accordion = new Accordion("accordion");

Previously one could write: 
accordion.setCollapsible(true);
accordion.setAutoHeight(false);
accordion.setClearStyle(true);

now, there are no such methods, but also one cannot alter the options as 
options are protected:

protected AccordionOptions getOptions() {
    return options;
}

Perhaps I am missing something, but I do believe one should not need to 
override a method to access the options, unless I am wrong and this was by 
design?

msj121

Original issue reported on code.google.com by msj...@gmail.com on 15 Apr 2011 at 3:34

GoogleCodeExporter commented 9 years ago

Original comment by hielke.hoeve on 11 May 2011 at 7:19

GoogleCodeExporter commented 9 years ago
The options class is no more than a HashMap, where the key is the jQuery 
options name. This allows you to set anything you want.

Original comment by hielke.hoeve on 12 Sep 2011 at 8:34

GoogleCodeExporter commented 9 years ago

Original comment by hielke.hoeve on 12 Sep 2011 at 8:34