Sha256: edec248e0a3bd2a46f83545836c426853acc1154b2c11ef39316089041e57ca0

Contents?: true

Size: 243 Bytes

Versions: 325

Compression:

Stored size: 243 Bytes

Contents

import { Controller } from '@hotwired/stimulus'

export default class extends Controller {
  static targets = ['content']

  showContent(event) {
    this.contentTarget.classList.toggle('hidden')
    event.target.classList.add('hidden')
  }
}

Version data entries

325 entries across 325 versions & 1 rubygems

Version Path
avo-3.11.4 app/javascript/js/controllers/hidden_input_controller.js
avo-3.11.3 app/javascript/js/controllers/hidden_input_controller.js
avo-3.11.2 app/javascript/js/controllers/hidden_input_controller.js
avo-3.11.1 app/javascript/js/controllers/hidden_input_controller.js
avo-3.11.0 app/javascript/js/controllers/hidden_input_controller.js
avo-2.52.0 app/javascript/js/controllers/hidden_input_controller.js
avo-3.10.10 app/javascript/js/controllers/hidden_input_controller.js
avo-3.10.9 app/javascript/js/controllers/hidden_input_controller.js
avo-3.10.8 app/javascript/js/controllers/hidden_input_controller.js
avo-3.10.7 app/javascript/js/controllers/hidden_input_controller.js
avo-3.10.6 app/javascript/js/controllers/hidden_input_controller.js
avo-3.10.5 app/javascript/js/controllers/hidden_input_controller.js
avo-3.10.4 app/javascript/js/controllers/hidden_input_controller.js
avo-3.10.3 app/javascript/js/controllers/hidden_input_controller.js
avo-3.10.2 app/javascript/js/controllers/hidden_input_controller.js
avo-3.10.1 app/javascript/js/controllers/hidden_input_controller.js
avo-3.10.0 app/javascript/js/controllers/hidden_input_controller.js
avo-3.9.2 app/javascript/js/controllers/hidden_input_controller.js
avo-3.9.1 app/javascript/js/controllers/hidden_input_controller.js
avo-3.8.2 app/javascript/js/controllers/hidden_input_controller.js