UI text multi line

Hi all
I'm using ui text ui table ui notify and I would write multi-line text. I try passing a payload with "\n" but not work.
Can someone help me?

You really need to provide a bit more if you want some help. How about creating a small flow demonstration your issue and then you can export it and attach it to a reply. That way people can see what you are currently doing.

You can display multi-line text in a dashboard text node like this:

[
    {
        "id": "28b1b2ddd3155eb6",
        "type": "ui_text",
        "z": "12f7dc31296fd47a",
        "group": "a6e358b.672ffa8",
        "order": 7,
        "width": "6",
        "height": "3",
        "name": "",
        "label": "text",
        "format": "{{msg.payload}}",
        "layout": "row-spread",
        "className": "",
        "x": 630,
        "y": 40,
        "wires": []
    },
    {
        "id": "b3170ca4f76ddaa5",
        "type": "inject",
        "z": "12f7dc31296fd47a",
        "name": "",
        "props": [
            {
                "p": "payload"
            },
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "Ottowa<p>Washington DC<p>Mexico City<p>Belmopan<p>Tegucigalpa<p>Guatemala City<p>",
        "payloadType": "str",
        "x": 490,
        "y": 40,
        "wires": [
            [
                "28b1b2ddd3155eb6"
            ]
        ]
    },
    {
        "id": "a6e358b.672ffa8",
        "type": "ui_group",
        "name": "Demo",
        "tab": "4e528085.a1bfa",
        "order": 1,
        "disp": true,
        "width": "20",
        "collapse": false
    },
    {
        "id": "4e528085.a1bfa",
        "type": "ui_tab",
        "name": "Demo",
        "icon": "dashboard",
        "order": 2,
        "disabled": false,
        "hidden": false
    }
]

Untitled 1

thank you very much, just one more question
If I would like a text box with a fixed width can i set the text in multiline mode automatically. or better can the text adapt to cell dimension in multiline mode?
many thanks for your help

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