* * Widgets are used to represent every node not event or execution related. * Use it to display and group data in the UI canvas. */
| 9 | * Use it to display and group data in the UI canvas. |
| 10 | */ |
| 11 | type Widget interface { |
| 12 | |
| 13 | /* |
| 14 | * The unique identifier for the widget. |
| 15 | * This is how nodes reference it, and is used for registration. |
| 16 | */ |
| 17 | Name() string |
| 18 | |
| 19 | /* |
| 20 | * The label for the widget. |
| 21 | * This is how nodes are displayed in the UI. |
| 22 | */ |
| 23 | Label() string |
| 24 | |
| 25 | /* |
| 26 | * A good description of what the widget does. |
| 27 | * Helpful for documentation and user interfaces. |
| 28 | */ |
| 29 | Description() string |
| 30 | |
| 31 | /* |
| 32 | * The icon for the widget. |
| 33 | */ |
| 34 | Icon() string |
| 35 | |
| 36 | /* |
| 37 | * The color for the widget. |
| 38 | */ |
| 39 | Color() string |
| 40 | |
| 41 | /* |
| 42 | * The configuration fields exposed by the widget. |
| 43 | */ |
| 44 | Configuration() []configuration.Field |
| 45 | } |
no outgoing calls
no test coverage detected