Sha256: 765b67d0b2bcc4394e35434bd5e1b054bfda2fbce54fdd2585570c004d63153f

Contents?: true

Size: 579 Bytes

Versions: 3

Compression:

Stored size: 579 Bytes

Contents

// @stimulus-components/reveal@5.0.0 downloaded from https://ga.jspm.io/npm:@stimulus-components/reveal@5.0.0/dist/stimulus-reveal-controller.mjs

import{Controller as s}from"@hotwired/stimulus";const t=class _Reveal extends s{connect(){this.class=this.hasHiddenClass?this.hiddenClass:"hidden"}toggle(){this.itemTargets.forEach((s=>{s.classList.toggle(this.class)}))}show(){this.itemTargets.forEach((s=>{s.classList.remove(this.class)}))}hide(){this.itemTargets.forEach((s=>{s.classList.add(this.class)}))}};t.targets=["item"],t.classes=["hidden"];let e=t;export{e as default};

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rails_devtools-0.1.3 vendor/javascript/@stimulus-components--reveal.js
rails_devtools-0.1.2 vendor/javascript/@stimulus-components--reveal.js
rails_devtools-0.1.1 vendor/javascript/@stimulus-components--reveal.js