Parameter | Description |
---|---|
context | Provides methods for defining node options. |
Called during DefineNode to define the options available on the node.
This method is called before OnDefinePorts. Override this method to add node options using the provided IOptionDefinitionContext.
protected override void OnDefineOptions(IOptionDefinitionContext context) { context.AddNodeOption<bool>( optionName: "My Bool", optionDisplayName: "myBoolId");
context.AddNodeOption( optionName: "Label", dataType: typeof(string), optionDisplayName: "labelId", tooltip: "A label.", defaultValue: "Default Value"); }