Request

Response

    TextFieldDescriptor class

    Provides an implementation of the ITextFieldDescriptor interface for creating text input components in custom forms. This descriptor enables users to enter text-based data with support for various input types and can be configured as single or multi-line input.

    public class TextFieldDescriptor : BaseInputDescriptor, ITextFieldDescriptor
    

    Public Members

    namedescription
    TextFieldDescriptor(…) Initializes a new instance of the TextFieldDescriptor class.
    Error { get; set; } Gets or sets a value indicating whether the text field is in an error state. When true, the text field will be rendered with error styling to indicate invalid input or validation failure. Defaults to false.
    HelperText { get; set; } Gets or sets the helper text displayed below the text field component. This text provides additional guidance, formatting instructions, or validation information to assist the user in entering the correct data. Defaults to an empty string if not specified.
    InlineTitle { get; set; } Gets or sets a value indicating whether the field title should be displayed inline with the input field rather than above it. When true, the title appears on the same line as the input, providing a more compact layout. Defaults to false.
    Multiline { get; set; } Gets or sets a value indicating whether the text field supports multiple lines of text. When true, the text field will render as a textarea allowing multi-line input. When false, it renders as a single-line input field. Defaults to false (single-line input).
    Placeholder { get; set; } Gets or sets the placeholder text displayed in the text field when no value is entered. This text provides a hint to the user about what they should enter. Defaults to null if not specified.
    Rows { get; set; } Gets or sets the number of visible text lines for multi-line text fields. This property is only applicable when Multiline is true and determines the initial height of the textarea component. A value of 0 indicates default sizing. Defaults to 0.
    TextFieldType { get; set; } Gets or sets the type of text field input. This determines the HTML input type. Valid values are defined in TextFieldType. Defaults to Text if not specified.
    Value { get; set; } Gets or sets the current text value entered in the text field. This represents the user's input data that can be retrieved for processing or used to pre-populate the field with existing data. Defaults to null if not specified.

    See Also