Sha256: a8aeb01072920dd9856aab74d7cba79d3df7d2eb06dfa56f992645c29f67c7cb
Contents?: true
Size: 361 Bytes
Versions: 1
Compression:
Stored size: 361 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("dismiss") } closeOnClickOutside({ target }) { if (target.nodeName === "DIALOG") this.close() } }
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
css-zero-0.0.15 | lib/generators/css_zero/add/templates/app/javascript/controllers/dialog_controller.js |