pCon.basket - Plugin Development
    Preparing search index...

    Interface ComponentFactory

    Factory for reusable components.

    interface ComponentFactory {
        createProgressOverlay(pOptions: ProgressOverlayOptions): ProgressOverlay;
        createProjectEditorActivity(
            pHost: ActivityHost,
            pOptions?: ProjectEditorActivityOptions,
        ): Promise<Activity>;
        createReactComponent<T extends PluginComponent>(
            pContainer: HTMLElement,
            pCallback: CreateReactComponentCallback<T>,
        ): Promise<T>;
        createReactExternalStore<T>(pInitialValue: T): ReactExternalStore<T>;
        createRootComponentContainer(pClassName?: string): ComponentContainer;
        createUserSettingsStorage(
            pOptions: UserSettingsStorageOptions,
        ): UserSettingsStorage | null;
        dataLanguagePicker(): DataLanguagePicker;
        eaiwsRichTextEditor(): EaiwsRichTextEditor;
        fileDropZone(): FileDropZone;
        loadingPanel(): LoadingPanel;
        splitterLayout(): SplitterLayout;
    }
    Index
    • Creates a new component container which can be used to display custom components at application level (e.g. dialogs). If the container is no longer used, dispose() has to be called to clean-up all resources.

      Parameters

      • OptionalpClassName: string

        Optional CSS class name for the container.

      Returns ComponentContainer

    • React component which can be used to visualize a loading state. If the isLoading property is true a loading animation will be shown. The user will not be able to interact with the child components of the panel while loading (requires react).

      Returns LoadingPanel