OptionalattributeThe data attribute to scan for. Defaults to "data-loadmodule"
OptionalloadedSuffix to mark an element as having been loaded. Defaults to "HasLoaded" → becomes data-loadmodule-has-loaded
One or more directories to search for modules. E.g., ["../modules", "../shared"]
OptionalrootRoot DOM element to search inside.
Defaults to document.
Options for the
loadModulesfunction.Remarks
This type defines the configuration for loading modules from HTML elements.
Example: Imports
Example: Usage