UNPKG

fvtt-types

Version:
30 lines (25 loc) 894 B
/** * A custom HTMLElement that is used to wrap enriched content that requires additional interactivity. */ export default class HTMLEnrichedContentElement extends HTMLElement { /** * The HTML tag named used by this element. */ static tagName: "enriched-content"; /** * Attributes requiring change notifications */ static observedAttributes: string[]; #private: true; /** * Invoke the enricher onRender callback when it is added to the DOM. */ connectedCallback(): void; /** * Fire a callback on change to an observed attribute. * @param attrName - The name of the attribute * @param oldValue - The old value: null indicates the attribute was not present. * @param newValue - The new value: null indicates the attribute is removed. */ attributeChangedCallback(attrName: string, oldValue: string | null, newValue: string | null): void; }