hiroprotagonist / jquery.mobile.actionsheet

An actionsheet for jquerymobile
103 stars 34 forks source link

A feature I found useful. #4

Closed zephster closed 13 years ago

zephster commented 13 years ago

First, thanks for your work on mobile actionsheet, I like it a lot. I'm totally customizing it for use with my work projects, but I added a barebones feature that I found very useful and I think others will too. My problem was the actionsheet div was inheriting CSS rules from where it was nested, but the triggers needed to be where they were. So I added the ability to move the div anywhere, and added IDs to make multiple actionsheets less confusing.

I hope you find it useful too!

hiroprotagonist commented 13 years ago

Basically i found it very simple to markup the sheet content followed by the toggle. But of course your right with what you say. I wont merge your pull request but i will implement the toggle-sheet association you suggested. I like the plugin to support both. The old markup way i need and the new way you need. So... Give me a few days. Thanks for pointing this out... Stefan

hiroprotagonist commented 13 years ago

Enabled toggle -> sheet assoc via html is

https://github.com/hiroprotagonist/jquery.mobile.actionsheet/commit/d8a88fc990ad1cf23563747010bf1092d4cbeaea