Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

CreateInteractionInputOptions

Struct
📦 Aspire.Hosting v17.0.0

Optional configuration shared by interaction input factory capabilities.

type CreateInteractionInputOptions struct {
Label *string `json:"Label"`
Description *string `json:"Description"`
EnableDescriptionMarkdown *bool `json:"EnableDescriptionMarkdown"`
Required *bool `json:"Required"`
Placeholder *string `json:"Placeholder"`
Value *string `json:"Value"`
AllowCustomChoice *bool `json:"AllowCustomChoice"`
Disabled *bool `json:"Disabled"`
MaxLength *float64 `json:"MaxLength"`
MaxFileSize *float64 `json:"MaxFileSize"`
AllowMultipleFiles *bool `json:"AllowMultipleFiles"`
FileFilter *string `json:"FileFilter"`
}

Fields

Label*stringoptional
Gets or sets the label for the input. Defaults to the input name when not specified.
Description*stringoptional
Gets or sets the description for the input.
EnableDescriptionMarkdown*booloptional
Gets or sets a value indicating whether the description is rendered as Markdown.
Required*booloptional
Gets or sets a value indicating whether the input is required.
Placeholder*stringoptional
Gets or sets the placeholder text for the input.
Value*stringoptional
Gets or sets the initial value of the input.
AllowCustomChoice*booloptional
Gets or sets a value indicating whether a custom choice is allowed. Only used by choice inputs.
Disabled*booloptional
Gets or sets a value indicating whether the input is disabled.
MaxLength*float64optional
Gets or sets the maximum length for text inputs.
MaxFileSize*float64optional
Gets or sets the maximum file size in bytes for file inputs.
AllowMultipleFiles*booloptional
Gets or sets a value indicating whether multiple files can be selected. Only used by file inputs.
FileFilter*stringoptional
Gets or sets the file type filter for file inputs. Uses the same format as the HTML accept attribute. The CLI validates only dot-prefixed extension filters and does not validate MIME type patterns such as "image/*".