GeoLeaf Core API - v3.0.0
    Preparing search index...
    • Creates an HTMLElement for tag, optionally assigning a className and a flat map of string attributes via setAttribute. This is the capability-local element factory the ported renderers use in place of the former core renderer base class.

      Parameters

      • tag: string

        HTML tag name (e.g. "div", "img", "a").

      • OptionalclassName: string

        Optional class name(s) assigned verbatim.

      • Optionalattrs: Record<string, string>

        Optional string-valued attributes set via setAttribute.

      Returns HTMLElement

      The created element, typed as HTMLElement.