Hi Guys,
In the sample H5 script H5SampleUserDetails.ts - it shows a users details inside a message dialogue box. It inserts the html tag <br/> at the end of each line, however when this script is run in M3, it displays the HTML tag as plain text, rather than interpreting it correctly and starting a new line.
Does anyone know how to correct get the message dialogue box to interpret a new line tag?
Here's the code from the sample:
private showDetails(): void {
const userContext = ScriptUtil.GetUserContext();
const header = "USER DETAILS";
const message = [];
for (let key in userContext) {
message.push(key + ": " + userContext[key]);
}
const opts = {
dialogType: "Information",
header: header,
message: message.join("<br/>"),
id: "msgDetails",
withCancelButton: true,
isCancelDefault: false
};
ConfirmDialog.ShowMessageDialog(opts);
}