Skip to content

Commit addc21c

Browse files
authored
fix: icon prop can be a function (#391)
the icon prop can also be a function that returns a string according to https://nodered.org/docs/creating-nodes/appearance#icon
1 parent 5ead2b2 commit addc21c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/creating-nodes/node-html.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ editor. It is an object with the following properties:
6060
- `labelStyle`: (string\|function) the [style](appearance#label-style) to apply to the label.
6161
- `inputLabels`: (string\|function) optional [label](appearance#port-labels) to add on hover to the input port of a node.
6262
- `outputLabels`: (string\|function) optional [labels](appearance#port-labels) to add on hover to the output ports of a node.
63-
- `icon`: (string) the [icon](appearance#icon) to use.
63+
- `icon`: (string\|function) the [icon](appearance#icon) to use.
6464
- `align`: (string) the [alignment](appearance#alignment) of the icon and label.
6565
- `button`: (object) adds a [button](appearance#buttons) to the edge of the node.
6666
- `oneditprepare`: (function) called when the edit dialog is being built. See [custom edit behaviour](properties#custom-edit-behaviour).

0 commit comments

Comments
 (0)