outsystems-ui - v3.0.0
    Preparing search index...

    Interface IProviderPattern<P>

    Defines the interface for OutSystemsUI Providers

    interface IProviderPattern<P> {
        build(): void;
        dispose(): void;
        isBuilt: boolean;
        selfElement: HTMLElement;
        uniqueId: string;
        widgetId: string;
        changeProperty(propertyName: string, propertyValue: unknown): void;
        registerCallback(eventName: string, callback: OSGeneric): void;
        provider: P;
        providerInfo: ProviderInfo;
        setProviderConfigs(newConfigs: any): void;
        updateProviderEvents(providerInfo: ProviderInfo): void;
        equalsToID(id: string): boolean;
    }

    Type Parameters

    • P

    Hierarchy (View Summary)

    Implemented by

    Index
    isBuilt: boolean

    Indicates if the instance of the pattern is built.

    selfElement: HTMLElement

    Pattern HTML element

    uniqueId: string

    Internal Id of the instance of the pattern.

    widgetId: string

    External Id of the instance of the pattern

    provider: P

    Attribute that keeps the instance of the provider of the pattern.

    providerInfo: ProviderInfo

    Attribute that keeps the information about the provider version

    • Method signature to change the properties/configs of the pattern.

      Parameters

      • propertyName: string

        Name of the config property to change

      • propertyValue: unknown

        New value of the property

      Returns void

    • Method to enable extensibility to provider supported configs

      Parameters

      • newConfigs: any

        Provider options to apply over the pattern ones

      Returns void

    • Method to update the provider events API instance and save/pending events

      Parameters

      • providerInfo: ProviderInfo

        Provider name, version and event list

      Returns void