I have been working on multi-level menu's or sub-menu's on my jquery mobile and generally 3rd partly jquery plugins have been deeply messing with my CSS relating to position:fixed
footer and scrolling.
I looked at the plugin's here and almost all of them are complicating things for me. I was hoping I could recreate this example with some magic from the existing jquery mobile framework as seen here
Left-hand Panel and submenus:
Here is a fast solution just to give you an idea. It has big room for improvement, so I will update this answer whenever I do any changes.
Create Submenus as much as you want, each one with a unique id and a close button with a class. Place Submenus inside main jQM panel.
Submenu HTML structure
CSS
Full height, width and positioned outside page.
Open Submenu
Close Submenu
Animate close/open
JS
Close all submenus once main jQM panel is closed
Open first submenu
Open second submenu
Close Submenu where close button is clicked
Right-hand Panel and submenus:
To position panel to right side, add
data-position="right"
attribute to panel div. Also, in.ui-sub-panel
class, changeleft
toright
.(1) Tested on Safari - iPhone 5 iOS 7.0.6 & iPad 2 iOS 7.1