H5P NodeJS Library
    Preparing search index...

    Scans the content parameters (= content.json) of a piece of content and calls a callback for each element in the semantic tree. This includes all nested pieces of content.

    You must pass ins a callback that is called for every element in the params tree. If this callback returns true, the scan will be aborted for the element and its children, but not for the rest of the params.

    Hierarchy (View Summary)

    Index

    Constructors

    Methods

    Constructors

    Methods

    • Scans the specified parameters and executes the callback for every element in the tree. This includes nested content!

      Parameters

      • params: any

        the params to scan

      • mainLibraryName: ILibraryName

        the library name

      • callback: ScanCallback

        a function that is executed for every element in the semantic structure. Return true in it to abort the scan for the element itself and all of its children (the rest of the scan will continue).

      Returns Promise<void>