test
parent
e23c8c5c99
commit
f41db106fd
|
@ -107,20 +107,15 @@
|
|||
|
||||
}
|
||||
|
||||
class CustomVariantDescriptionElement extends HTMLElement {
|
||||
static get observedAttributes() { return ['class', 'style', 'id']; } // Add any other attributes you want to observe
|
||||
|
||||
class CustomVariantDescriptionElement extends HTMLDivElement {
|
||||
constructor() {
|
||||
super();
|
||||
this.style.display = 'block';
|
||||
|
||||
// "variant" is the id of the variant
|
||||
|
||||
this.variant = this.getAttribute('variant');
|
||||
this.currentVariant = null;
|
||||
}
|
||||
|
||||
attributeChangedCallback(name, oldValue, newValue) {
|
||||
this.removeAttribute(name);
|
||||
}
|
||||
|
||||
initVariantDescription(id) {
|
||||
|
|
Loading…
Reference in New Issue