@@ -29,18 +29,18 @@ To support new widgets, the following runtime API is exported from the Node-RED
29
29
| :--- | :------------------------- | :----------------------------------------------------------- |
30
30
| 1 | node* | controlling node.<br />optional if scope is "global". |
31
31
| 2 | format | HTML code of widget.<br />Accepts HTML same as one for Template Dashboard widget node. |
32
- | 3 | group* | group node object to which widget belongs |
32
+ | 3 | group | group node object to which widget belongs |
33
33
| 4 | width* | width of widget |
34
34
| 5 | height* | height of widget |
35
- | 6 | templateScope | scope of widget ("global" or "local") |
36
- | 7 | emitOnlyNewValues * | send message if changed |
37
- | 8 | forwardInputMessages * | forward input messages to output |
38
- | 9 | storeFrontEndInputAsState * | store received message |
39
- | 10 | convert * | callback to convert value to front-end |
40
- | 11 | beforeEmit * | callback to prepare message |
41
- | 12 | convertBack * | callback to convert sent message |
42
- | 13 | beforeSend * | callback to prepare message |
43
- | 14 | order | order in group |
35
+ | 6 | order | order in group |
36
+ | 7 | templateScope | scope of widget ("global" or "local") |
37
+ | 8 | emitOnlyNewValues * | send message if changed |
38
+ | 9 | forwardInputMessages * | forward input messages to output |
39
+ | 10 | storeFrontEndInputAsState * | store received message |
40
+ | 11 | convert * | callback to convert value to front-end |
41
+ | 12 | beforeEmit * | callback to prepare message |
42
+ | 13 | convertBack * | callback to convert sent message |
43
+ | 14 | beforeSend * | callback to prepare message |
44
44
| 15 | initController* | callback to initialize in controller |
45
45
46
46
` addWidget ` returns a callback that should be called on close of controlling node.
@@ -142,7 +142,7 @@ To support new widgets, the following runtime API is exported from the Node-RED
142
142
return conf;
143
143
};
144
144
145
- RED.nodes.registerType('ui_cal', mk_conf('cal'));
145
+ RED.nodes.registerType('ui_cal', mk_conf('cal')); // NOTE: The type MUST start with "ui_"
146
146
</script>
147
147
```
148
148
Use `ui_group` for configuring belonging group, and `elementSizer` for configuring widget size.
@@ -205,6 +205,6 @@ To support new widgets, the following runtime API is exported from the Node-RED
205
205
}
206
206
node.on("close", done);
207
207
}
208
- RED.nodes.registerType('ui_cal', CalNode);
208
+ RED.nodes.registerType('ui_cal', CalNode); // NOTE: The type MUST start with "ui_"
209
209
};
210
210
```
0 commit comments