Hierarchy

  • UpDataEditControl
    • UpTextareaEditControl

Properties

element: HTMLTextAreaElement

Accessors

  • get required(): boolean
  • Gets the required state of the control.

    Returns boolean

    Example

    var textarea = ix.util.getUp("<GUID>");
    textarea.required;
  • set required(value): void
  • Sets the required state of the control.

    Parameters

    • value: boolean

    Returns void

    Example

    var textarea = ix.util.getUp("<GUID>");
    textarea.required = <true|false>;

Methods

  • Checks the elements validity.

    Returns Promise<ValidationInfo>

    Example

    const validityResult = await ix.util.getUp("<GUID>").checkValidity();

    // example of `validityResult` - the entered value has wrong format
    ValidationInfo {
    valStatus: false,
    valMessage: 'The field must not be empty.',
    valType: 'required'
    }
  • Gets the value of the control.

    Returns string

    Example

    var textarea = ix.util.getUp("<GUID>");
    textarea.getValue();
  • Checks and reports validity.
    Useful if the field's value was changed without triggering changes.

    Returns Promise<void>

  • Sets the value of the control.

    Parameters

    • value: string
    • Optional settings: {
          triggerOnchange: "disabled" | "strict" | "always";
      }
      • triggerOnchange: "disabled" | "strict" | "always"

    Returns void

    Example

    var textarea = ix.util.getUp("<GUID>");
    textarea.setValue("my value");