@validide/u-front-ends
    Preparing search index...

    Class ComponentAbstract

    Base class for all components.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    id: string
    isInitialized: boolean
    isMounted: boolean
    resourcesLoaded: boolean
    rootElement: HTMLElement | null
    window: Window | null

    Methods

    • Call the global error handler.

      Parameters

      • e: Error

        The error object

      Returns void

    • Method invoked to dispose of the component.

      Returns Promise<void>

    • Core dispose function. Any component derived should override this to add clean-up after itself.

      Returns Promise<void>

    • Method invoked to initialize the component. It should create the root element and any base dependencies.

      Returns Promise<Component>

    • Core initialization function. Any component derived should override this to add extra functionality.

      Returns Promise<void>

    • Load the resources required by the component.

      Returns Promise<void>

    • Logging method.

      Parameters

      • Optionalmessage: unknown

        The message.

      • ...optionalParams: unknown[]

        Optional parameters.

      Returns void

    • Core mount function. Any component derived should override this to add extra functionality.

      Returns Promise<void>