h5p-types
    Preparing search index...

    Type Alias H5PLibrary

    type H5PLibrary = {
        author?: string;
        coreApi?: { majorVersion: number; minorVersion: number };
        description?: string;
        dynamicDependencies?: Dependency[];
        editorDependencies?: Dependency[];
        embedTypes?: ("div" | "iframe")[];
        fullscreen?: 0 | 1;
        license?: string;
        machineName: string;
        majorVersion: number;
        metadataSettings?: { disable: 0 | 1; disableExtraTitleField: 0 | 1 };
        minorVersion: number;
        patchVersion: number;
        preloadedCss?: { path: string }[];
        preloadedDependencies?: Dependency[];
        preloadedJs?: { path: string }[];
        runnable?: 0 | 1;
        title: string;
    }
    Index

    Properties

    author?: string
    coreApi?: { majorVersion: number; minorVersion: number }

    Specifies the required version of H5P Core API. If not set, v1.0 is assumed, and the library must not use any functionality added in newer versions of H5P Core.

    Type declaration

    • majorVersion: number
      1
      
    • minorVersion: number
      0
      
    description?: string
    dynamicDependencies?: Dependency[]
    editorDependencies?: Dependency[]

    Undocumented but important feature to load widgets when editing H5Ps

    embedTypes?: ("div" | "iframe")[]

    List of possible ways to embed the package in the page

    fullscreen?: 0 | 1

    Enables the integrated full-screen button

    license?: string
    machineName: string
    majorVersion: number
    metadataSettings?: { disable: 0 | 1; disableExtraTitleField: 0 | 1 }

    Disable metadata completely or just hide title field from content type's form.

    Type declaration

    • disable: 0 | 1
      0
      
    • disableExtraTitleField: 0 | 1
      1
      
    minorVersion: number
    patchVersion: number
    preloadedCss?: { path: string }[]
    preloadedDependencies?: Dependency[]
    preloadedJs?: { path: string }[]
    runnable?: 0 | 1

    Whether or not this library is runnable. If it is runnable the authoring tool will enable authors to create new instances of content using this library. Values are 0 for not runnable and 1 for runnable.

    title: string

    Textual library name