Welcome › Forums › Customer Support › Setting active accordion item
Welcome › Forums › Customer Support › Setting active accordion item
| Wijmo Team Member | justSteve posted on July 4, 2012 at 1:31 pm I’m trying to script which item in my accordion’s list is active when the page loads. This answer at stackoverflow works for the jQueryUI accordion but fails on the Wijmoized version. http://stackoverflow.com/questions/1408261/jquery-accordion-setting-active Boils down to; $(“#accordion”).wijaccordion({ active: 2 }); //doesn’t | |
| Wijmo Team Member | Ashish Jindal posted on July 4, 2012 at 2:57 pm Hello, You may try setting the selectedIndex property of the Accordion control like below:
$(“#accordion”).wijaccordion({ selectedIndex: 1 });
Regards | Answer |
| Wijmo Team Member | justSteve posted on July 6, 2012 at 8:24 pm How common will I find these sorts of cases – where I copy jQueryUI code into wijmo. I’ve been thinking that reading various postings comments and whatnot related to written to jUI could expect to also work for wijmo? I get that the posted code dupes the UI’s snippet – I don’t get why I have to get it though | Answer |
| Wijmo Team Member | Ashish Jindal posted on July 9, 2012 at 6:51 am Hello Steve, Since, Wijmo widgets are jQuery based controls so the basic implementation remains same but if you are trying to get/set any control specific property then you may refer to the wijmo docs available at the below link: If you face any other issue then do let me know. | Answer |
| Wijmo Team Member | justSteve posted on July 9, 2012 at 11:23 am Wouldn’t it more specific to say that Wijmo is built off jQuery UI? It’s that presumption that leads me to expect I can look to general info about jQueryUI for the basics and Wijmo when I want additional enhancements. It’s not surprising that there’s not a 1-to-1 relation, but here’s a case where the same feature is supported but requires different syntax in the passing of the params. Looking for general principals that can help me avoid the extra learning curve I’ve just stepped thru. thx | Answer |
Tagged: accordion
You must be logged in to reply to this topic.