Page 2 of 2

content break line

Posted: Mon Apr 06, 2015 6:08 am
by M&M

Can you post your code? And also this code should be used when you are populating your label from the REST Service. Unless you have some static text (with line breaks) which you need to show in a label component


content break line

Posted: Mon Apr 06, 2015 6:14 am
by M&M

here's a sample - all it does is to populate a label component with 3 lines (with breaks)

https://www.dropbox.com/s/pt3blbwggir...

Remember not to rename this project before you test.

The code is just this
And also change the name of the label control to your label control name
code

//this is your HTML code
var html = "1st line<br/>2nd line<br/>3rd line&quot
&#47;&#47;Set HTML to labelName component&#46;
Apperyio("labelCtrl")&#46;html(html);
/code


content break line

Posted: Tue Apr 07, 2015 6:04 am
by Spark Chao

ok!thanks so much~ I will try that.
can you provide your email,if I meet another question can seek help from you?