Input in type "INT", "STRING" or "FLOAT" will be converted automatically from a string to the corresponse Python type before passing and have special config
Argument: s (`None`): Useless ig
Returns: `dict`:
- Key input_fields_group (`string`): Can be either required, hidden or optional. A node class must have property `required`
- Value input_fields (`dict`): Contains input fields config:
* Key field_name (`string`): Name of a entry-point method's argument
* Value field_config (`tuple`):
+ First value is a string indicate the type of field or a list for selection.
+ Secound value is a config for type "INT", "STRING" or "FLOAT".
"""
return{
"required":{
"string_field":("STRING",{
"multiline":True,#Allow the input to be multilined
Input types "INT", "STRING" or "FLOAT" are special values for fields on the node.
Input in type "INT", "STRING" or "FLOAT" will be converted automatically from a string to the corresponse Python type before passing and have special config
The type can be a list for selection.
Argument: s (`None`): Useless ig
Returns: `dict`:
Returns: `dict`:
- Key input_fields_group (`string`): Can be either required, hidden or optional. A node class must have property `required`
- Key input_fields_group (`string`): Can be either required, hidden or optional. A node class must have property `required`
- Value input_fields (`dict`): Contains input fields config:
- Value input_fields (`dict`): Contains input fields config:
...
@@ -42,46 +44,43 @@ class Example:
...
@@ -42,46 +44,43 @@ class Example:
"""
"""
return {
return {
"required": {
"required": {
"string_field":("STRING",{
"image": ("IMAGE",),
"multiline":True,#Allow the input to be multilined