Options
Menu

Hierarchy

  • UpTextMainEditControl
    • UpUriEditControl

Index

Accessors

maxLength

  • get maxLength(): number
  • set maxLength(value: number): void
  • Gets the maximum length of the control.

    Returns number

  • Sets the maximum length of the control.

    Parameters

    • value: number

    Returns void

required

  • get required(): boolean
  • set required(value: boolean): void
  • Gets the control's required state.

    Returns boolean

  • Sets the control's required state

    Parameters

    • value: boolean

    Returns void

Methods

checkValidity

  • checkValidity(): Promise<ValidationInfo>
  • Checks control validity.

    example
    const validityResult = await ix.util.getUp("<GUID>").checkValidity();
    
    // example of `validityResult` - field is required, but was not filled
    ValidationInfo {
      valStatus: false,
      valMessage: 'Please make a selection',
      valType: 'required'
    }
    

    Returns Promise<ValidationInfo>

getValue

  • getValue(): string
  • Returns the value of the field.

    Returns string

setValue

  • setValue(val: string, settings?: { triggerOnchange: "disabled" | "strict" | "always" }): void
  • Sets a value for the control.

    Parameters

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

    Returns void