How can I make a 2x line break in the label when I send it from the custom module?
If I enter it directly in a matrix widget, the following syntax works perfect:
props.label = (
VARartSpecialName[$] + '\n\n' +
VARartSpecialKey[$]
)
But if I send this syntax from the custom-modul to the matrix widget with /EDIT ...
receive('/EDIT', 'matrix_artSpecial', {'props': `JS{{
var props = {}
var VARartSpecialName = [${artSpecialName}]
var VARartSpecialKey = [${artSpecialKey}]
//props.html = VARartSpecialKey[$]
props.label = (
VARartSpecialName[$] '\n\n' VARartSpecialKey[$]
)
return props
}}`
});
... it arrives like this in the props from matrix widget.
props.label = (
VARartSpecialName[$] '
' VARartSpecialKey[$]
)
I have already tried different brackets and quotes, but nothing has helped.
Is there any other newline commands than \n or what else could I try?