Page 1 of 1

Set Button Text Issues

Posted: Thu Jun 27, 2013 2:40 pm
by Kapow36

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?


Set Button Text Issues

Posted: Thu Jun 27, 2013 2:51 pm
by Maryna Brodina

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


Set Button Text Issues

Posted: Thu Jun 27, 2013 2:56 pm
by Kapow36

Excellent, thanks Marina!