Sha256: f228b314e9e91c6d0b36b8ce58d4eb727f1a5d52581e8021e3ee5495636a9f14

Contents?: true

Size: 220 Bytes

Versions: 27

Compression:

Stored size: 220 Bytes

Contents

import { Controller } from "@hotwired/stimulus"

export default class extends Controller {
  static get targets() {
    return [ "container" ]
  } 

  toggle() {
    this.containerTarget.classList.toggle('hidden')
  }

}

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
spina-2.4.0 app/assets/javascripts/spina/controllers/toggle_controller.js
spina-2.3.5 app/assets/javascripts/spina/controllers/toggle_controller.js
spina-2.3.4 app/assets/javascripts/spina/controllers/toggle_controller.js
spina-2.3.3 app/assets/javascripts/spina/controllers/toggle_controller.js
spina-2.3.2 app/assets/javascripts/spina/controllers/toggle_controller.js
spina-2.3.1 app/assets/javascripts/spina/controllers/toggle_controller.js
spina-2.3.0 app/assets/javascripts/spina/controllers/toggle_controller.js