You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The docs say the data-opened attribute can be used for two-way data-binding for opening and closing a jqm panel.
It's true, it does work (in one direction at least) to open and close the panel when you change that property.
However, if the panel closes of it's own accord (e.g. swipe gesture), then the variable bound to data-opened is not updated, and is then out of sync with the state of the panel.
Have you noticed that?
I tried to create you a jsfiddle, but it doesn't initialise properly and doesn't run :( But you will get the gist.
The docs say the data-opened attribute can be used for two-way data-binding for opening and closing a jqm panel.
It's true, it does work (in one direction at least) to open and close the panel when you change that property.
However, if the panel closes of it's own accord (e.g. swipe gesture), then the variable bound to data-opened is not updated, and is then out of sync with the state of the panel.
Have you noticed that?
I tried to create you a jsfiddle, but it doesn't initialise properly and doesn't run :( But you will get the gist.
Hi @tigbro,
The docs say the
data-opened
attribute can be used for two-way data-binding for opening and closing a jqm panel.It's true, it does work (in one direction at least) to open and close the panel when you change that property.
However, if the panel closes of it's own accord (e.g. swipe gesture), then the variable bound to
data-opened
is not updated, and is then out of sync with the state of the panel.Have you noticed that?
I tried to create you a jsfiddle, but it doesn't initialise properly and doesn't run :( But you will get the gist.
http://jsfiddle.net/jKvwV/11/
thanks,
-adam
The text was updated successfully, but these errors were encountered: