Sha256: 56f092882d5f267b1bc718c84a44b1b415c1ebc1d062d1c884ea27e075758620
Contents?: true
Size: 352 Bytes
Versions: 20
Compression:
Stored size: 352 Bytes
Contents
import { Controller } from "@hotwired/stimulus" export default class extends Controller { static targets = [ "box" ] show() { this.boxTarget.show() } showModal() { this.boxTarget.showModal() } close() { this.boxTarget.close() } closeOnClickOutside({ target }) { if (target.nodeName === "DIALOG") this.close() } }
Version data entries
20 entries across 20 versions & 1 rubygems