Kapow36
Posts: 0
Joined: Thu May 23, 2013 4:07 pm

Set Button Text Issues

I've been working on a full calendar ui layout, but for some reason whenever I set the text of a button
code
Appery('buttonName').text("sample text");
/code
it always gets rid of any other formatting done to the button. (e.g. removes icons and makes the button really small because the text has no padding)

Is there a reason this happens?

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Set Button Text Issues

Hello! Try this code codeAppery('buttonName').find(".ui-btn-inner").text("sample text");/code

Kapow36
Posts: 0
Joined: Thu May 23, 2013 4:07 pm

Set Button Text Issues

Excellent, thanks Marina!

Return to “Issues”