M&M
Posts: 0
Joined: Tue Nov 11, 2014 6:59 am

content break line

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

M&M
Posts: 0
Joined: Tue Nov 11, 2014 6:59 am

content break line

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

Spark Chao
Posts: 0
Joined: Sat Jan 17, 2015 6:25 am

content break line

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

Return to “Issues”