When getting custom fields from an API, it would be a nicer user experience to guide the user by adapting the field to the data type.
These custom fields are returned by a method defined in loadOptions
.
As shown below, loadOptions
can only return an array of INodePropertyOptions
It seems that INodePropertyOptions
doesn’t have a way to define the type of the expected data (number, string, boolean, options…).
There is no ‘type’ field
On the other hand, INodeProperties
has a type
field that permits this.
Is there a way to define the data type inside of an INodePropertyOptions
component ?
Thank you
Information on your n8n setup
- n8n version: 0.172.0
- Database you’re using (default: SQLite): SQLite
- Running n8n with the execution process [own(default), main]: npm run dev
- Running n8n via [Docker, npm, n8n.cloud, desktop app]: npm