CodBi
    Preparing search index...

    Interface CodbiGlobal

    The global codbi object, available via window.codbi. Should only be used when it is absolutely necessary to expose symbols externally. Use ESM imports otherwise.

    interface CodbiGlobal {
        autoCheckAttributes: boolean;
        baseURL: string;
        checkAttributes: () => Promise<boolean>;
        configTemplate: ConfigTemplate;
        extendEP(
            id: string,
            generator: (params: string[]) => unknown[] | Promise<unknown[]>,
        ): boolean;
        extendFunctionality(
            id: string,
            init: (toLoad: any, toProcess: Element) => any,
        ): boolean;
        injectLoadingAnim(destination: Element): void;
        loadConfig(toLoad: { [key: string]: unknown }): void;
        loadConfigs(toLoad: { targets: string; [key: string]: unknown }[]): void;
        log(
            level: "INFO" | "WARNING" | "ERROR",
            message: string,
            adjunct?: string,
        ): void;
        nncHandler(toHandle: string): void;
        registerEP(id: string, generator: (params: string[]) => unknown): boolean;
        registerFunctionality(
            id: string,
            init: (toLoad: any, toProcess: Element) => any,
        ): boolean;
        removeLoaderAnim(toRemoveFrom: Element): void;
        reportError(message: string): undefined;
    }

    Implemented by

    Index

    Properties

    autoCheckAttributes: boolean

    States whether CodbiGlobal.checkAttributes shall be invoked automatically or not.

    baseURL: string

    Stores the base URL e.g. "https://localhost/xima-formcycle".

    checkAttributes: () => Promise<boolean>
    configTemplate: ConfigTemplate

    Methods

    • Logs the provided message using the specified level.

      Parameters

      • level: "INFO" | "WARNING" | "ERROR"

        The log level to use ("INFO", "WARNING", "ERROR").

      • message: string

        The message to log.

      • Optionaladjunct: string

        An adjunct string to provide additional context or information. Will be placed after a slash in the log header ([[ CodBi / ] ... ]).

      Returns void

    • Removes the CodBi-Loading-Animation that was inserted via CodbiGlobal.injectLoadingAnimfrom the given {@link toRemoveFrom.

      Parameters

      • toRemoveFrom: Element

        The Element all CSS-Class-cCodBiLoader shall be removed from.

      Returns void