Closed (fixed)
Project:
jQuery UI filter
Version:
7.x-1.0-beta1
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
20 Mar 2012 at 18:47 UTC
Updated:
14 May 2012 at 13:59 UTC
First of all I'd like to thank you for this incredibly useful module. Really appreciate it.
I'd like to be able to include accordions inside the separate tabs. Is this possible with the current iteration, or is this something that would need to be added?
Thanks again for your fine work on this project.
Comments
Comment #1
jrockowitz commentedIt is not possible in the current iteration because I am using very simple regular expressions to parse the widget [code]. To truly get nesting working I would have parse the 'tree' of widgets. Honestly, I just don't have the programming 'skillz' to write this type of parser.
At same time, depending on your situation you might just want to bypass this module and build it using a few lines of jQuery. Here is a pretty good example. http://stackoverflow.com/questions/1542161/jquery-ui-accordions-within-tabs
Comment #2
CinemaSaville commentedOK, thanks for the response.
Comment #3
jrockowitz commentedSo, I decided to take one more shot at this issue and refactored the regular expression handling so that an accordion widget can be nested with a tab.
Please note that tabs still can't be nested within an accordion but I am not really sure why someone would want to this.
Please test the dev release.
Comment #4
jrockowitz commentedComment #5
jrockowitz commentedThe new release will allow you specify different header tags for the accordion and tabs widget which will make it easy to nest them. For example the accordion widget can use an H2 and the tabs an H3.