Sha256: a01dee57a683678b189af7cea8d6a6d8b7df53612b73ae1eb445a5cf4eba4cdd
Contents?: true
Size: 354 Bytes
Versions: 194
Compression:
Stored size: 354 Bytes
Contents
import { Controller } from '@hotwired/stimulus' import { useClickOutside } from 'stimulus-use' export default class extends Controller { static targets = ['panel'] connect() { useClickOutside(this) } clickOutside() { this.panelTarget.classList.add('hidden') } togglePanel() { this.panelTarget.classList.toggle('hidden') } }
Version data entries
194 entries across 194 versions & 1 rubygems