Thursday, August 23, 2012

jquerymobile dynamically changing button text and multiple buttons in Header

Couple of interesting discussions.

I had a button which had to toggle between Spin Start and   Spin Stop text. When I implemented this in JQuery Mobile after the first press the button and text sizes became smaller. Then I came across this fix given in

 jquerymobile dynamically changing text for button issue.

I did the fix suggested by Hexagonal

$('#svbutton .ui-btn-text').text(currentTimeString); which worked like a charm.

I wanted to have the title, Spin, Info and Settings button in the header. Unfortunately this is not possible as described in this discussion

Adding more buttons to header

So I had to move the Spin button to the Content section.

No comments:

Post a Comment