schema-components - v3.7.0
    Preparing search index...

    Class BaseScElementAbstract

    Base class for the built-in <sc-*> Custom Elements.

    Subclasses declare:

    1. A static properties table extending BaseScElement.properties.
    2. A render() method returning the per-type TemplateResult.

    The class deliberately does not implement render() itself — a LitElement without render() is still constructible, but its default behaviour is to render nothing. Subclasses are required to override.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    properties: {
        tree: { attribute: boolean };
        value: { attribute: boolean };
        readOnly: { attribute: boolean };
        writeOnly: { attribute: boolean };
        path: { attribute: boolean };
        meta: { attribute: boolean };
        constraints: { attribute: boolean };
        examples: { attribute: boolean };
        change: { attribute: boolean };
        renderChild: { attribute: boolean };
    } = ...

    Property declarations shared by every built-in Custom Element.

    Subclasses spread this in:

    static override properties = {
    ...BaseScElement.properties,
    ...
    };

    Every shared property uses attribute: false — none of the payloads (tree, value, meta, constraints) round-trip safely through HTML attribute strings.

    value: unknown
    readOnly: boolean
    writeOnly: boolean
    path: string
    constraints: AllConstraints
    examples?: unknown[]
    change: (value: unknown) => void
    renderChild: (
        tree: WalkedField,
        value: unknown,
        change: (next: unknown) => void,
        pathSuffix?: string,
    ) => TemplateResult

    Methods

    • Dispatch the canonical sc-change event. Renderers call this inside DOM event handlers (@input, @change, @click on add/remove controls) — the orchestrating ancestor catches the event, propagates the structural update to the root value, and re-emits a top-level change event on its own host.

      Parameters

      • value: unknown

      Returns void