Utilities for accessing elements in the Document Object Model (DOM).

Hierarchy

  • IxDOMUtils

Methods

  • Replacement for $().children.

    Parameters

    • el: HTMLElement
    • selector: string

    Returns NodeListOf<Element>

  • Replacement for $().closest.

    Parameters

    • el: HTMLElement
    • selector: string
    • Optional includeSelf: boolean

    Returns null | HTMLElement

  • Try to get the elements for the given key.

    Parameters

    • key: string | HTMLElement | JQuery<HTMLElement>
    • settings: HTMLElement | Partial<GetHtmlContextSettings> = ...

    Returns JQuery<HTMLElement>

  • Get the GUID of the control.

    Parameters

    • element: HTMLElement | JQuery<HTMLElement>

    Returns undefined | string

  • Get a HTML element via ID or GUID from a specific context (defaults to document).

    Parameters

    • key: string
    • Optional settings: HTMLElement | GetHtmlContextSettings

    Returns null | HTMLElement

  • Returns the UpObject.

    Parameters

    • key: string | HTMLElement

      An element Guid, id or HTMLElement.

    • settings: Partial<GetUpSettings> = ...

    Returns null | UpControlLike

    The UpControl like object for the first HTML element.

  • Checks whether an UpObject is linked to the element.

    Parameters

    • key: string | HTMLElement

      An element GUID, ID or HTMLElement.

    • settings: Partial<GetUpSettings> = ...

    Returns boolean

  • Set and returns the UpObject or null.

    Parameters

    • element: HTMLElement
    • Optional ctrlInfoGuid: string

      Control info GUID, default is current element GUID.

    • Optional up: any

    Returns any