Nude Element API Docs - v0.1.3
    Preparing search index...

    Per-element wrapper around a Prop spec. Holds the current and previous value for one prop on one element, and the per-element behavior (get, set, update, cascade) for that prop.

    Index

    Constructors

    Properties

    oldValue: any

    Last value that was different from the current one (i.e. the value before the most recent change that passed the equality check).

    props: ElementProps
    spec: Prop
    value: any

    Current stored value. undefined means no explicit value has been set, which triggers default resolution on read.

    Accessors

    Methods

    • Write a value: parse, convert, store, and reflect to attribute when applicable.

      Parameters

      • value: any

        Raw value (string from an attribute, any from a property write).

      • Optionaloptions: { name?: string; oldAttributeValue?: string; source?: string } = {}

      Returns void