Sha256: 3145df87f87722513d16ce9c32744fe51c04b174774b90d2ecd4f1223c0dfff9

Contents?: true

Size: 206 Bytes

Versions: 4

Compression:

Stored size: 206 Bytes

Contents

import { Controller } from "@hotwired/stimulus"

export default class extends Controller {
  static targets = ["checkbox"]

  toggle() {
    this.checkboxTarget.checked = !this.checkboxTarget.checked
  }
}

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
rails_devtools-0.1.3 app/javascript/controllers/checkbox_controller.js
rails_devtools-0.1.2 app/javascript/controllers/checkbox_controller.js
rails_devtools-0.1.1 app/javascript/controllers/checkbox_controller.js
rails_devtools-0.1.0 app/javascript/controllers/checkbox_controller.js