Skip to content

Element Info

Source: infoElementCore.json

Info files for v3 elements.

Properties

  • controller (string, required): The name of the element's controller file.
  • dependencies (object): The element's client-side dependencies. Cannot contain additional properties.
    • nodeModulesStyles (array): The styles required by this element from /node_modules.
      • Items (string): A .css file located in /node_modules.
    • nodeModulesScripts (array): The scripts required by this element from /node_modules.
      • Items (string): A .js file located in /node_modules.
    • elementStyles (array): The styles required by this element from the element's directory.
      • Items (string): A .css file located in the element's directory.
    • elementScripts (array): The scripts required by this element from the element's directory.
      • Items (string): A .js file located in the element's directory.
  • dynamicDependencies (object): The element's client-side dynamic dependencies. Cannot contain additional properties.
    • nodeModulesScripts (object): The scripts required by this element from /node_modules as an importmap.
      • Additional properties (string)
    • elementScripts (object): The scripts required by this element from the element's directory as an importmap.
      • Additional properties (string)
  • additionalNames (array): Any additional names to give this element, i.e. for backwards compatibility.
    • Items (string): A name for this element to be used in question HTML files.

Definitions

  • CommentJsonSchema: Arbitrary comment for reference purposes.
    • Any of
      • string
      • array
      • object: Cannot contain additional properties.
        • Additional properties