Page 1 of 1

Newbie needs just a little help with label

Posted: Sat Jan 02, 2016 12:22 am
by neuronhighway9522

Hi Im using page show to set a value from storage to a label . I want to add a word in front of the value returned so I added another event for the label using the value change and javascript in the design tab ---
return 'word' + value;
that didnt work

so what is a the correct way to do this?


Newbie needs just a little help with label

Posted: Sat Jan 02, 2016 4:58 pm
by Alena Prykhodko

Hello,

Use this code on Page show event:

preApperyio("label").text("word"+" "+ localStorage.getItem("LSVname"));/pre

where LSVname - name of your localStorage variable
label - name of label component.