Skip to content
Docs Try Aspire

InteractionInput Properties

Class Properties 13 members
Represents an input for an interaction.
AllowCustomChoice Section titled AllowCustomChoice bool
Gets a value indicating whether a custom choice is allowed. Only used by InputType.Choice inputs.
public bool AllowCustomChoice { get; init; }
Description Section titled Description nullable string?
Gets or sets the description for the input.
public string? Description { get; init; }
Gets or sets a value indicating whether a custom choice is allowed. Only used by InputType.Choice inputs.
public bool Disabled { get; set; }
Gets the InputLoadOptions for the input. Dynamic loading is used to load data and update inputs after a prompt has started. It can also be used to reload data and update inputs after a dependant input has changed.
public InputLoadOptions? DynamicLoading { get; init; }
EnableDescriptionMarkdown Section titled EnableDescriptionMarkdown bool
Gets or sets a value indicating whether the description should be rendered as Markdown. Setting this to true allows a description to contain Markdown elements such as links, text decoration and lists.
public bool EnableDescriptionMarkdown { get; init; }
Gets or sets the type of the input.
public InputType InputType { get; init; }
Label Section titled Label nullable string?
Gets or sets the label for the input. If not specified, the name will be used as the label.
public string? Label { get; init; }
MaxLength Section titled MaxLength nullable int?
gets or sets the maximum length for text inputs.
public int? MaxLength { get; init; }
Gets or sets the name for the input. Used for accessing inputs by name from a keyed collection.
public string Name { get; init; }
Options Section titled Options nullable IReadOnlyList<KeyValuePair<string, string>>
Gets or sets the options for the input. Only used by InputType.Choice inputs.
public IReadOnlyList<KeyValuePair<string, string>>? Options { get; set; }
Placeholder Section titled Placeholder nullable string?
Gets the placeholder text for the input.
public string? Placeholder { get; init; }
Gets or sets a value indicating whether the input is required.
public bool Required { get; init; }
Value Section titled Value nullable string?
Gets or sets the value of the input.
public string? Value { get; set; }