• import { hyloComponentsLoaded } from '@src/hylo-components/utils/usefull/usefull';

    Gathers components which fired the event "hyloComponentLoaded". It does not check if components already fired the event. It listens on the "parent" until the initial "timespan" runs out and no component got gather. Every time a component gets gathered the timespan is "reset". The gathering can be restricted to specific tag names.

    Parameters

    • parent: HTMLElement

      the element on wich is listend for the "hyloComponentLoaded" event

    • tags: string[] = []

      an array of tag names to which the gathering is restricted to (optional)

    • timespan: number = 5000

      the initial listening timespan in milliseconds (optional)

    • reset: number = 1000

      the reset listening timespan in milliseconds (optional)

    Returns Promise<HTMLElement[]>

Generated using TypeDoc