Page 1 of 1

Set value to Button

Posted: Thu Feb 20, 2014 6:56 am
by ishani modi

Hi,

Is it possible to set value of button component, value is coming via rest service

Thanks,
Ishani


Set value to Button

Posted: Thu Feb 20, 2014 8:36 am
by Kateryna Grynko

Hi Ishani,

You can use this code:preAppery("mobilebutton").text("test")/preWhere mobilebutton is a button component name.


Set value to Button

Posted: Thu Feb 20, 2014 8:48 am
by ishani modi

Hi, I dont want to change the text, i Want to bind value to button with particular Id


Set value to Button

Posted: Thu Feb 20, 2014 9:34 am
by Kateryna Grynko

Hi Ishani,

What do you mean by id? If HTML attribute id - use this:prescreenName_mobiletextarea/pre ('screenName' is a page name, 'mobiletextarea' is a component name).
What do you mean by binding textarea with id?


Set value to Button

Posted: Thu Feb 20, 2014 11:21 am
by ishani modi

Thanks Katya, I solved it :)