InteractionInputBuilder.WithDynamicLoading
Method
type InteractionInputBuilder interface { // ... omitted for brevity WithDynamicLoading( callback func(arg InteractionInputLoadContext), options ...*DynamicLoadingOptions, ) InteractionInputBuilder}Signature
method
WithDynamicLoading Attaches a callback that dynamically loads or updates the input after the prompt starts.
WithDynamicLoading( callback func(arg InteractionInputLoadContext), options ...*DynamicLoadingOptions,) InteractionInputBuilderParameters
callbackfunc(arg InteractionInputLoadContext) callbackThe callback invoked to load the input. Use the supplied context to read other inputs and update this input.options...*DynamicLoadingOptions Optional settings, described under Options.Options
Optional parameters are passed as the existing *DynamicLoadingOptions struct.
Returns
InteractionInputBuilder The same builder handle.
Returns a handle; failures surface later via Err().
Defined on
This method is defined on the following type: