What would activeClass: ".whatever" do?

Scott mentioned there is a class that gets added when a section is
activated. It is from the jQuery UI CSS Framework. It is

ui-state-active

See here for more info

http://docs.jquery.com/UI/Theming
http://docs.jquery.com/UI/Theming/API

>From my reading of the documentation, the 'active' option you referred to is
not to configure this, but to specify (via a css selector) which one should
start active. From

http://docs.jquery.com/UI/Accordion/accordion#options

option: active
type: String, Element, jQuery, Boolean, Number
Default: first child
Description: Selector for the active element. Set to false to display none
at start. Needs «alwaysOpen: false».

- Richard

On Mon, Jan 19, 2009 at 2:38 AM, zemm <simonenast...@gmail.com> wrote:

>
> Oh ok - then will be there an activeClass:".whatever" ?
>
> On 18 Gen, 15:33, Scott González <scott.gonza...@gmail.com> wrote:
> > We have redone our markup for several of the plugins while building
> > our new CSS framework.
> >
> > The wrapper div that contains the header and content panel gets the
> > selected class and the header gets the active class.
> >
> > On Jan 16, 8:24 am, zemm <simonenast...@gmail.com> wrote:
> >
> > > Hi,
> > > as in subject, assignment of selected class to the active accordion
> > > element (both default and via selectedClass) assigns it to the wrong
> > > div, actually to the accordion content div.
> > > It works as expected with ui 1.5.3 .
> > > div structure:
> > > <div class="content-box">
> > >                                 <div id="test-accordion"
> class="accordion">
> > >                                         <div class="accordion-item">
> > >                                                 <div
> class="accordion-toggle">Introduction</div>
> > >                                                 <div
> class="accordion-content">
> > >                                                 </div>
> > >                                         </div>
> > >                                         <div class="accordion-item">
> > >                                                 <div
> class="accordion-toggle">Introduction</div>
> > >                                                 <div
> class="accordion-content">
> > >                                                 </div>
> > >                                         </div>
> >
> > >                                 </div>
> > > </div><!--END .content-box !-->
> >
> > > and how I trigger the accordion:
> >
> > >                  jQuery(document).ready(function () {
> > >                                 jQuery("#test-accordion").accordion({
> > >                                         header: "div.accordion-toggle",
> > >                                         fillSpace: true,
> > >
> active:"div.accordion-toggle:first"
> > >                                 });
> > >                 });
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"jQuery UI" group.
To post to this group, send email to jquery-ui@googlegroups.com
To unsubscribe from this group, send email to 
jquery-ui+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/jquery-ui?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to