UNPKG

@fluentui/dom-utilities

Version:

DOM utilities for use within Fluent web components

58 lines (39 loc) 1.82 kB
## API Report File for "@fluentui/dom-utilities" > Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). ```ts // @public (undocumented) export const DATA_PORTAL_ATTRIBUTE = "data-portal-element"; // @public export function elementContains(parent: HTMLElement | null, child: HTMLElement | null, allowVirtualParents?: boolean): boolean; // @public export function elementContainsAttribute(element: HTMLElement, attribute: string, doc?: Document): string | null; // @public export function findElementRecursive(element: HTMLElement | null, matchFunction: (element: HTMLElement) => boolean, doc?: Document): HTMLElement | null; // @public (undocumented) export const getActiveElement: (doc: Document) => Element | null; // @public export function getChildren(parent: HTMLElement, allowVirtualChildren?: boolean): HTMLElement[]; // @public (undocumented) export const getEventTarget: (event: Event) => HTMLElement | null; // @public export function getParent(child: HTMLElement, allowVirtualParents?: boolean): HTMLElement | null; // @public export function getVirtualParent(child: HTMLElement): HTMLElement | undefined; // @public export function isVirtualElement(element: HTMLElement | IVirtualElement): element is IVirtualElement; // @public export interface IVirtualElement extends HTMLElement { // (undocumented) _virtual: { parent?: IVirtualElement; children: IVirtualElement[]; }; } // @public export function portalContainsElement(target: HTMLElement, parent?: HTMLElement, doc?: Document): boolean; // @public export function setPortalAttribute(element: HTMLElement): void; // @public export function setVirtualParent(child: HTMLElement, parent: HTMLElement | null): void; // (No @packageDocumentation comment for this package) ```