ios - Set button text based on data attribute in Sencha Touch? -


i have ext.list displays collection of in-app purchases list of songs in ios itunes app. each item has "buy" button justified on right, should show price of item stored in ext.data.record.

how can set text of button show price string stored in data record? aware of hard-coding value ext.button's "text" attribute. maybe there way callback?

thank much!

you can reference button , call settext() method. code might this:

var button = viewwithbutton.down('#buttonid'); button.settext(record.get('price')); 

Comments

Popular posts from this blog

shopping cart - Page redirect not working PHP -

php - How to modify a menu to show sub-menus -

python - Installing PyDev in eclipse is failed -