@labkey/api
    Preparing search index...

    Function registerApp

    • Registers an app by "appName". When the app is requested to be loaded (via loadApp) the onInit() callback will be invoked to initialize the app.

      Type Parameters

      • CTX

      Parameters

      • appName: string

        The unique name for this app type.

      • onInit: OnInitCallback<CTX>

        Callback that will be invoked when the app is loaded.

      • Optionalhot: boolean

        If this app is running in a "hot" module reload context you'll want to set this to "true" so the app can be properly initialized after module reloads.

      Returns void