Sha256: 4f852471c53e914f126eec8b25c34d39a4ca0d6fc9fb5f73f6e2869f94d34c50

Contents?: true

Size: 234 Bytes

Versions: 2

Compression:

Stored size: 234 Bytes

Contents

import { Controller } from "@hotwired/stimulus"

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

  check({ target }) {
    this.dependentTargets.forEach(element => element.checked = target.checked)
  }
}

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
css-zero-0.0.39 lib/generators/css_zero/add/templates/app/javascript/controllers/check_all_controller.js
css-zero-0.0.38 lib/generators/css_zero/add/templates/app/javascript/controllers/check_all_controller.js