Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

InteractionLoadingInput

Handle
📦 Aspire.Hosting v17.0.0

A handle to the input currently being loaded by a dynamic-loading callback. Mirrors the native LoadInputContext.Input by letting callbacks update the live input directly.

type InteractionLoadingInput interface{}

Methods

methodGetName
Gets the name of the input.
GetName() (string, error)
(string, error)

The input name.

Returns (string, error).

Sets the choice options for the input.
SetChoiceOptions(choices []*InteractionChoiceOption) error
choices[]*InteractionChoiceOptionThe available choices, in display order. Each option pairs a submitted value with a display label.
error

Returns error.

methodSetValue
Sets the value of the input.
SetValue(value string) error
valuestringThe value to assign.
error

Returns error.