data-nobackbtn="true" / data-backbtn="false"

232 views
Skip to first unread message

Anthony

unread,
May 23, 2011, 7:36:52 AM5/23/11
to jqm...@googlegroups.com

Page attribute data-nobackbtn="true" has been replaced with data-backbtn="false"

This can be changed in /lib/jqmPage.php on line 68.


I am not aware if it remains backward compatible within the jQuery Mobile framework.
Assumption is that jqmphp will not hide the automatically rendered back button when using the latest release of jquery mobile.


Anthony

unread,
May 23, 2011, 8:40:57 AM5/23/11
to jqm...@googlegroups.com
edit to original post:

Additional to the change in the jQuery Mobile framework,
I also note that one can assign ->noBackBtn(true) to a page but not a header.

By duplicating the attributes and get/set methods used by jqmPage, into jqmHeader - the back button can also be sucessfully shown/hidden using this attribute.
This might not have been the best way to implement, as it would make sense to inherit it from a parent class?

Either way, just an FYI on how i got the back button in my headers working.

brunol...@gmail.com

unread,
May 23, 2011, 9:10:27 AM5/23/11
to jqm...@googlegroups.com
Hi,

I will consider your ​​contributions in the next release. I'm waiting for the jQuery Mobile beta release. Many changes are happening now. After this I will make all changes to the code for to keep the compatibility.

Regards,

Bruno Maia.
Reply all
Reply to author
Forward
0 new messages