Skip to content

Attribute Parser

Esther Brunner edited this page Oct 9, 2024 · 9 revisions

Attribute Parser

Web Components can have observed attributes, that trigger the attributeChangedCallback:

static observedAttributes = ['value']

UIElement parses these attributes according to a declarative static Property called attributeMap:

static attributeMap = {
    value: asInteger
}
Clone this wiki locally