API reference
Preparing search index…

ElementInstanceCallback

Allocate a detached native element through another typed instancer.

  • Allocate an owned native element.

    Parameters

    parent
    null | Element

    Proposed native parent, or null for a root.

    tag
    string

    Actual native tag, independent of the registration name.

    attributes
    Record<string, VariantValue>

    Independent copy of the allocation attributes.

    Returns

    null | Element

    Newly allocated detached element, or null on allocation failure.

    Source & inheritance

Icons made by Lorc, Delapouite & Skoll · game-icons.net · CC BY 3.0