diff options
Diffstat (limited to '')
-rw-r--r-- | browser/components/payments/res/components/rich-option.js | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/browser/components/payments/res/components/rich-option.js b/browser/components/payments/res/components/rich-option.js new file mode 100644 index 0000000000..d82697de20 --- /dev/null +++ b/browser/components/payments/res/components/rich-option.js @@ -0,0 +1,26 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + +/** + * <rich-select> + * <rich-option></rich-option> + * </rich-select> + */ + +import ObservedPropertiesMixin from "../mixins/ObservedPropertiesMixin.js"; + +export default class RichOption extends ObservedPropertiesMixin(HTMLElement) { + static get observedAttributes() { + return ["selected", "value"]; + } + + connectedCallback() { + this.classList.add("rich-option"); + this.render(); + } + + render() {} +} + +customElements.define("rich-option", RichOption); |