Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

InteractionInputsDialogOptions

Struct
📦 Aspire.Hosting v17.0.0

Options for inputs dialog prompts.

type InteractionInputsDialogOptions struct {
PrimaryButtonText *string `json:"PrimaryButtonText"`
SecondaryButtonText *string `json:"SecondaryButtonText"`
ShowSecondaryButton *bool `json:"ShowSecondaryButton"`
ShowDismiss *bool `json:"ShowDismiss"`
EnableMessageMarkdown *bool `json:"EnableMessageMarkdown"`
ValidationCallback func(...any) any `json:"ValidationCallback"`
}

Fields

PrimaryButtonText*stringoptional
Gets or sets the primary button text.
SecondaryButtonText*stringoptional
Gets or sets the secondary button text.
ShowSecondaryButton*booloptional
Gets or sets a value indicating whether the secondary button is shown.
ShowDismiss*booloptional
Gets or sets a value indicating whether the dismiss button is shown.
EnableMessageMarkdown*booloptional
Gets or sets a value indicating whether Markdown in the message is rendered.
ValidationCallbackfunc(...any) anyoptionalcallback
Gets or sets a callback invoked to validate the inputs before the dialog is accepted. The callback receives a validation context that exposes the current inputs and can record validation errors.