Sha256: 8e47c1213e3857088e680f33e8707e5fa0cdf8442ae3001c4242bca0323d6a99
Contents?: true
Size: 875 Bytes
Versions: 117
Compression:
Stored size: 875 Bytes
Contents
/* eslint-disable custom-elements/expose-class-on-global */ import {controller, target} from '@github/catalyst' @controller export class ToggleSwitchInputElement extends HTMLElement { @target validationElement: HTMLElement @target validationMessageElement: HTMLElement connectedCallback() { this.addEventListener('toggleSwitchError', (event: Event) => { this.validationMessageElement.textContent = (event as CustomEvent).detail this.validationElement.removeAttribute('hidden') }) this.addEventListener('toggleSwitchSuccess', () => { this.validationMessageElement.textContent = '' this.validationElement.setAttribute('hidden', 'hidden') }) this.addEventListener('toggleSwitchLoading', () => { this.validationMessageElement.textContent = '' this.validationElement.setAttribute('hidden', 'hidden') }) } }
Version data entries
117 entries across 117 versions & 2 rubygems