Nude Element API Docs - v0.1.3
    Preparing search index...
    interface PropChangeEventProps {
        attributeName?: string;
        attributeValue?: string;
        name: string;
        oldAttributeValue?: string;
        oldValue: any;
        prop: ElementProp;
        source: "property" | "attribute";
        value: any;
    }
    Index

    Properties

    attributeName?: string

    Set when source === "attribute" or a property write reflects to an attribute.

    attributeValue?: string
    name: string

    Prop name.

    oldAttributeValue?: string
    oldValue: any

    Stored value before this change, or — for a coalesced resume dispatch — the burst-start value the consumer was last told.

    source: "property" | "attribute"

    Origin label for the most recent user write — "property", "attribute", or undefined if no write has ever landed. Persists across dep-cascade recomputes and across attribute removal: source describes the origin shape of the prop's input, not whether input is currently present. A source: "property" event can therefore mean either "user just wrote" or "user wrote previously, and a cascade just recomputed the visible value" — diff value vs oldValue if you need to tell them apart. Plugins may introduce additional source values; the built-in code only emits the three above.

    value: any

    Current stored value (parsed + converted).