I'm trying to create a line break in a string send from a custom module to a matrix widget (button widget).
receive(
"/EDIT",
"pingstatus/" + i,
{"label": `the location is \n ${item.locatie}`, "colorWidget": item.status}
);
The \n is not working in this example. In the log file I see that an addition backslash is added in the. Any idea?
Debugger
(DEBUG, OSC) In: {
address: '/EDIT',
args: [
'pingstatus/0',
'{"label":"the location is \\n Onder de bank","colorWidget":"green"}'
]
} From: undefined:undefined