Skip to content

Commit

Permalink
fix some table and link issues
Browse files Browse the repository at this point in the history
(but not all)
  • Loading branch information
Dave Conway-Jones committed Aug 14, 2019
1 parent f156d23 commit cfc8286
Show file tree
Hide file tree
Showing 8 changed files with 1,586 additions and 384 deletions.
1 change: 0 additions & 1 deletion node-red-ui-node-table/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ The columns can be configured manually. If so then only the `msg.payload` proper
- **Color** - HTML color name, or hex value (#rrggbb) to fill the cell.
- **Tick/Cross** - Tick or Cross symbol, boolean true/false, numeric 1/0 or text "1"/"0".
- **Stars** - Number of stars - numeric 0 to 5.
- **Date/Time**
- **Row Number** - Current row number.


Expand Down
115 changes: 85 additions & 30 deletions node-red-ui-node-table/examples/2 Richer table.json
Original file line number Diff line number Diff line change
@@ -1,74 +1,129 @@
[
{
"id": "89c6c6ff.3b8c08",
"id": "b7dff285.69049",
"type": "inject",
"z": "bb6af731.9866a8",
"name": "",
"topic": "",
"payload": "[{\"Name\":\"<b>Yokoi</b>\",\"Age\":\"30\",\"Color\":\"lime\",\"Prog\":70,\"Star\":\"3\"},{\"Name\":\"<i>DCJ</i>\",\"Age\":\"50\",\"Color\":\"dodgerblue\",\"Prog\":\"45\",\"Star\":2,\"Pass\":false,\"web\":\"\"},{\"Name\":\"Nick\",\"Age\":\"40\",\"Color\":\"darkred\",\"Prog\":95,\"Star\":\"5\",\"Pass\":true,\"web\":\"http://nodered.org\"},{\"Name\":\"Oli\"}]",
"payloadType": "json",
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"x": 210,
"y": 580,
"wires": [
[
"7d48e13.90ee22"
]
]
},
{
"id": "cb53cb76.5fd0d8",
"type": "inject",
"z": "bb6af731.9866a8",
"name": "",
"topic": "",
"payload": "[{\"Name\":\"<b>Yokoi</b>\",\"Age\":\"30\",\"Color\":\"lime\",\"Prog\":20,\"Star\":\"1\"},{\"Name\":\"<i>DCJ</i>\",\"Age\":\"50\",\"Color\":\"dodgerblue\",\"Prog\":\"80\",\"Star\":4,\"Pass\":true,\"web\":\"\"},{\"Name\":\"Nick\",\"Age\":\"40\",\"Color\":\"red\",\"Prog\":90,\"Star\":\"5\",\"Pass\":true,\"web\":\"http://nodered.org\"},{\"Name\":\"Oli\"}]",
"payloadType": "json",
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"x": 210,
"y": 620,
"wires": [
[
"7d48e13.90ee22"
]
]
},
{
"id": "7d48e13.90ee22",
"type": "ui_table",
"z": "bb6af731.9866a8",
"group": "571a38b1.5e3638",
"name": "People",
"order": 1,
"width": 0,
"height": 0,
"width": "8",
"height": "3",
"columns": [
{
"field": "Name",
"title": "Who",
"width": "",
"align": "left",
"formatter": "html"
"formatter": "html",
"formatterParams": {
"target": "_blank"
}
},
{
"field": "Age",
"title": "Age",
"width": "75",
"width": "40",
"align": "center",
"formatter": "plaintext"
"formatter": "plaintext",
"formatterParams": {
"target": "_blank"
}
},
{
"field": "Color",
"title": "",
"width": "5%",
"align": "left",
"formatter": "color"
"formatter": "color",
"formatterParams": {
"target": "_blank"
}
},
{
"field": "Prog",
"field": "Star",
"title": "%",
"width": "100",
"align": "left",
"formatter": "star"
"formatter": "star",
"formatterParams": {
"target": "_blank"
}
},
{
"field": "Pass",
"title": "",
"width": "5%",
"align": "center",
"formatter": "tickCross"
"formatter": "tickCross",
"formatterParams": {
"target": "_blank"
}
},
{
"field": "Prog",
"title": "",
"width": "80",
"align": "left",
"formatter": "progress",
"formatterParams": {
"target": "_blank"
}
},
{
"field": "web",
"title": "URL",
"width": "",
"align": "left",
"formatter": "link",
"formatterParams": {
"target": "_blank"
}
}
],
"x": 420,
"y": 580,
"wires": []
},
{
"id": "b7dff285.69049",
"type": "inject",
"z": "bb6af731.9866a8",
"name": "",
"topic": "",
"payload": "[{\"Name\":\"<b>Yokoi</b>\",\"Age\":\"30\",\"Color\":\"lime\",\"Prog\":\"3\",\"Pass\":true},{\"Name\":\"<i>DCJ</i>\",\"Age\":\"50\",\"Color\":\"dodgerblue\",\"Prog\":\"2\",\"Pass\":false},{\"Name\":\"Nick\",\"Age\":\"40\",\"Color\":\"darkred\",\"Prog\":\"5\",\"Pass\":true}]",
"payloadType": "json",
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"x": 210,
"y": 580,
"wires": [
[
"89c6c6ff.3b8c08"
]
]
},
{
"id": "571a38b1.5e3638",
"type": "ui_group",
Expand Down
Loading

0 comments on commit cfc8286

Please sign in to comment.