Type Alias H5PForm<TParams>

H5PForm: {
    $common: JQuery<HTMLElement> | null;
    $commonButton: JQuery<HTMLElement> | null;
    $form: JQuery<HTMLElement> | null;
    addLanguages: (
        libraryName: string,
        languageCodes: (string | undefined)[],
    ) => void;
    children: H5PGroup[];
    commonFields: Record<
        UberName,
        {
            l10n: {
                instance: H5PGroup;
                params: unknown;
                parents: H5PForm;
                setValues: H5PSetValue<unknown>;
            };
        },
    >;
    currentLibrary?: UberName;
    metadata: H5PMetadata;
    metadataForm: H5PMetadataForm
    | null;
    offset: { left: number; top: number };
    params: TParams;
    parent: H5PForm | null;
    passReadies: boolean;
    readies: unknown[];
    ready: (callback: () => void) => void;
    removeLanguages: (
        libraryName: string,
        languageCodes: (string | undefined)[],
    ) => void;
    zebra: "odd" | "even";
}

Type Parameters

  • TParams = unknown

Type declaration

  • $common: JQuery<HTMLElement> | null
  • $commonButton: JQuery<HTMLElement> | null
  • $form: JQuery<HTMLElement> | null
  • addLanguages: (libraryName: string, languageCodes: (string | undefined)[]) => void

    Add new languages for content type.

  • children: H5PGroup[]
  • commonFields: Record<
        UberName,
        {
            l10n: {
                instance: H5PGroup;
                params: unknown;
                parents: H5PForm;
                setValues: H5PSetValue<unknown>;
            };
        },
    >
  • OptionalcurrentLibrary?: UberName
  • metadata: H5PMetadata
  • metadataForm: H5PMetadataForm | null
  • offset: { left: number; top: number }
  • params: TParams
  • parent: H5PForm | null
  • passReadies: boolean
  • readies: unknown[]
  • ready: (callback: () => void) => void
  • removeLanguages: (libraryName: string, languageCodes: (string | undefined)[]) => void
  • zebra: "odd" | "even"