Start a new topic

Is there any way to have a AR.Label take up more than 1 line and wrap?

Is there any way to have a AR.Label take up more than 1 line and wrap?

So far after playing with your SDK, that is the only thing that I can?t accomplish that I require in order to become a paying customer.

Below are the two ways I have tried and it still always shows up on just one line.
var label = new AR.Label(jsonObject.id + ": " + " : " + jsonObject.name,1.0,
{offsetY : 21.0,
triggers: {
onClick:
createClickTrigger(jsonObject.id)},
style : {textColor : '#FFC100',backgroundColor : '#FFFFFF80'}});

var label = new AR.Label(jsonObject.id + ": " + " : /n" + jsonObject.name,1.0,
{offsetY : 21.0,
triggers: {
onClick:
createClickTrigger(jsonObject.id)},
style : {textColor : '#FFC100',backgroundColor : '#FFFFFF80'}});
Does anyone look at these entries?  I would REALLY appreciate an answer on this question.  I know that I could do it by creating html boxes myself and populating them with the right information, but it would make my life a lot easier if I could just find out whether it is possible to have a multi-line label and how.

Steve Saxton
Currently this is not directly possible. A Label is by our definition a single line of text. We are working on solutions for the next version to have formatted multi line text.
Right now I would suggest to split it manually the text into 2 lines, create 2 AR.Labels and use the offsetY property to position one label on top of the other.
Thanks so much for the reply.

That is what I thought the answer would be.  Now to move on to implementation.

Steve Saxton
Login or Signup to post a comment