Can this be done in wbappbuilder?
Did you ever figured it out @JamalWest2 ?
\n worked just fine for me in FireFox but recently I noticed that it doesn't work in Google Chrome.
You can accomplish this using Arcade.
var tempArcade2 = "$feature."+field1TextLB;//Website";
var tempClass2 = new LabelClass({
labelExpressionInfo: {
expression: tempArcade2
},
labelPlacement: placementLB,
minScale: MinScaleB,
maxScale: MaxScaleB
});
tempClass2.symbol = textSymB;
tempClass2.PoS = "S";
this.sLayer.setLabelingInfo([tempClass,tempClass2]
I'm working with labels as TextSymbols created for a GraphicsLayer, it doesn't seem to be a setLabelingInfo method for a Graphic layer. Your example is for a feature Layer right?
I'll have to go look at some of my code, but I think I did something on a graphic layer by creating an empty layer and cloning graphics layer to it and labeling. basically i had something similar but need to look at it to let you know.