UNPKG

@fluentui/dom-utilities

Version:

DOM utilities for use within Fluent web components

9 lines (8 loc) 303 B
/** * Gets the element which is the parent of a given element. * If `allowVirtuaParents` is `true`, this method prefers the virtual parent over * real DOM parent when present. * * @public */ export declare function getParent(child: HTMLElement, allowVirtualParents?: boolean): HTMLElement | null;