Hierarchy

  • UpDateTimeMainEditControl
    • UpDateEditControl

Accessors

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

    Returns boolean

  • set required(value): void
  • Sets the control's required state

    Parameters

    • value: boolean

    Returns void

Methods

  • Checks if the value matches the format and is in range of values.

    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: 'Entry does not correspond to required format. Format: dd.MM.yyyy',
    valType: 'pattern'
    }
  • Closes the picker.

    Returns void

  • Get the current value of the control or given value as JavaScript date object.

    Parameters

    • Optional value: string

    Returns undefined | Date

    Example

    ix.util.getUp("<GUID>").getDateObject("22.02.2022");

    // Returns a date object:
    `Tue Feb 22 2022 00:00:00 GMT+0100 (Central European Standard Time)`
  • Returns the value of the field.

    Returns string

  • Opens the picker.

    Returns void

  • Checks and reports validity.
    Useful if the field's value was changed without triggering changes.

    Returns Promise<void>

  • Set value of the control.

    Parameters

    • val: Date
    • Optional settings: {
          triggerOnchange?: "disabled" | "strict" | "always";
      }
      • Optional triggerOnchange?: "disabled" | "strict" | "always"

    Returns void

    Deprecated

    Please use setValue instead!

  • Sets a value for the control.

    Parameters

    • value: string | Date

      The value must be either a string (in the same format the field is configured with) or an date object.
      NOTE: If the value dosen't match the field's format, no value will be set.

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

    Returns void

  • Converts a JavaScript date object to a string like 22.02.2022.

    Parameters

    • date: Date

    Returns string

    Note

    The output depends on the field's format settings.

    Example

    // convert a given date object
    ix.util.getUp("<GUID>").toLocalFormat(new Date(2022, 01, 22));

    // returns
    '22.02.2022'