How do I download this ui table in csv
I am using node-red ui table
Below is the flow, click inject timestamp to inject table data
[
{
"id": "758b47d77078d14e",
"type": "tab",
"label": "Flow 1",
"disabled": false,
"info": "",
"env": []
},
{
"id": "6c1e8c2ff814d53b",
"type": "junction",
"z": "758b47d77078d14e",
"x": 1135.5078125,
"y": 240.5234375,
"wires": [
[]
]
},
{
"id": "4bddba03ed588b14",
"type": "ui_tab",
"name": "Home",
"icon": "dashboard",
"disabled": false,
"hidden": false
},
{
"id": "19bfae636033fa2a",
"type": "ui_group",
"name": "Default",
"tab": "4bddba03ed588b14",
"order": 1,
"disp": true,
"width": "6",
"collapse": false,
"className": ""
},
{
"id": "e68fcfd07d233151",
"type": "inject",
"z": "758b47d77078d14e",
"name": "",
"props": [
{
"p": "payload"
},
{
"p": "topic",
"vt": "str"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "",
"payloadType": "date",
"x": 580,
"y": 240,
"wires": [
[
"f0d7239424d59422"
]
]
},
{
"id": "f0d7239424d59422",
"type": "function",
"z": "758b47d77078d14e",
"name": "function 1",
"func": "msg.payload = [\n {\n \"Name\": \"Kazuhito Yokoi\",\n \"Age\": \"35\",\n \"Favourite Color\": \"red\",\n \"Date Of Birth\": \"12/09/1983\"\n },\n {\n \"Name\": \"Oli Bob\",\n \"Age\": \"12\",\n \"Favourite Color\": \"cyan\",\n \"Date Of Birth\": \"12/08/2017\"\n }\n];\nreturn msg;",
"outputs": 1,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 740,
"y": 240,
"wires": [
[
"36237ab869efb9e9"
]
]
},
{
"id": "36237ab869efb9e9",
"type": "ui_table",
"z": "758b47d77078d14e",
"group": "19bfae636033fa2a",
"name": "table",
"order": 0,
"width": "4",
"height": "3",
"columns": [],
"outputs": 1,
"cts": true,
"x": 1180,
"y": 240,
"wires": [
[
"867f55192d7b8e1b"
]
]
},
{
"id": "867f55192d7b8e1b",
"type": "ui_button",
"z": "758b47d77078d14e",
"name": "",
"group": "19bfae636033fa2a",
"order": 14,
"width": "4",
"height": "1",
"passthru": false,
"label": "Download",
"tooltip": "click to download",
"color": "",
"bgcolor": "",
"className": "",
"icon": "",
"payload": "{\"command\":\"download\",\"arguments\":[\"csv\",\"table.csv\",{\"delimiter\":\";\"}],\"returnPromise\":false}",
"payloadType": "json",
"topic": "",
"topicType": "str",
"x": 1350,
"y": 240,
"wires": [
[]
]
}
]