• Retrieves the enclosing FuncPart for the specified element.

    This function traverses up the DOM tree from the specified element to find the nearest parent element that represents a FuncPart.

    Parameters

    • element: IxControl | HTMLElement

      The element or Intrexx control for which to find the enclosing FuncPart.

    Returns IxPage | null

    The FuncPart that encloses the specified element, or null if no such FuncPart exists.

    Note

    FuncPart is a JavaScript representation of an Intrexx application page.

    Example

    const element = ix.api.page.getUp("<ELEMENT-GUID>");
    const funcPart = ix.api.page.getFuncPart(element);
    console.log(funcPart); // Returns: FuncPart { ... }