Sha256: 28b89978bfc166a7dfda6afd8b453cf49083181f6a8b4c0ca17adeb8325e1330

Contents?: true

Size: 285 Bytes

Versions: 30

Compression:

Stored size: 285 Bytes

Contents

import { Controller } from "@hotwired/stimulus"

// simple controller to hide/show the filter modal
export default class extends Controller {
  static targets = ["content"]

  toggle(_event) {
    this.contentTargets.forEach(node => {
      node.toggleAttribute("hidden")
    })
  }
}

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
refine-rails-2.9.9 app/javascript/controllers/refine/toggle-controller.js
refine-rails-2.9.8 app/javascript/controllers/refine/toggle-controller.js
refine-rails-2.9.7 app/javascript/controllers/refine/toggle-controller.js
refine-rails-2.9.6 app/javascript/controllers/refine/toggle-controller.js
refine-rails-2.9.5 app/javascript/controllers/refine/toggle-controller.js
refine-rails-2.9.4 app/javascript/controllers/refine/toggle-controller.js
refine-rails-2.9.3 app/javascript/controllers/refine/toggle-controller.js
refine-rails-2.9.2 app/javascript/controllers/refine/toggle-controller.js
refine-rails-2.9.1 app/javascript/controllers/refine/toggle-controller.js
refine-rails-2.9.0 app/javascript/controllers/refine/toggle-controller.js