Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

InteractionLoadingInput.SetChoiceOptions

Method
📦 Aspire.Hosting v17.0.0
type InteractionLoadingInput interface {
// ... omitted for brevity
SetChoiceOptions(choices []*InteractionChoiceOption) error
}

Signature

methodSetChoiceOptions
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.

Defined on

This method is defined on the following type: