CodBi
    Preparing search index...

    Provides the HTML_Select_Injection.functionality.

    Maintainer: Callari, Salvatore (Salvatore.Callari@Ansbach.de)

    Index

    Constructors

    Properties

    Methods

    Constructors

    Properties

    rexpReplacements: RegExp = ...

    The RegExp used to validate replacement strings.

    Methods

    • This functionality injects a HTMLStyleElement containing the specified "CSS" into either the specified "Destination" or the document's HTMLHeadElement. Prior to injection the placeholder (<...>) within the specified "CSS" will be replaced with their respective values according to the given "Replacements"-Definition (...|...).

      • CSS: The CSS to inject (when used in CodBi-Standard-Configuration) or the result of an Elementplaceholder-Retrieval (when used in plain attributes).
      • Replacements: An Array < string > of two elements each that are separated by a "|". The first part contains the placeholder as found in the specified "CSS". The second one the string the placeholder shall be replaced with. Each element has to comply to ^[a-zA-Z][a-zA-Z0-9]\s|\s[a-zA-Z0-9]*$*.
      • Darkmode: The Darkmode-Replacements that will replace all placeholders ending with "_DM" in the provided CSS.
      • Destination: The selector pointing to the "CSS"-Destination.

      Parameters

      • toLoad: { [key: string]: string | string[] }
      • toProcess: Element

      Returns void