Display enumeration in a list

Hi,

I have a enumeration as a string in my payload:

Line1;Line2;Line3;Line4;Line5

I want to display it in my dashboard. It should look like this:
image

How can I do this?

Split the string and reform with html unordered list tags

msg.payload = "<ul><li>"+msg.payload.split(";").join("</li><li>")+"</li></ul>"
return msg;

Thanks. That works for me. Than I use the following lines in my template node:

<div ng-bind-html="msg.payload"></div>

Is this ok?

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.