PageSourceSearch

https://catalog.charlestonforge.com/assets/controllers/checkbox_co…a89d0297902e89aac7648f789141c2cf204656e9.js

js charlestonforge.com collected 2026-09-26 07:03:14 UTC 502 bytes, 25 lines download raw bytes

1import { Controller } from "@hotwired/stimulus";
2
3// Controls checkbox inputs.
4//
5// Connects to data-controller="checkbox"
6export default class extends Controller {
7  static targets = ["input"];
8
9  syncAll(event) {
10    if (event.target.checked) {
11      this.checkAll();
12    } else {
13      this.uncheckAll();
14    }
15  }
16
17  checkAll() {
18    this.inputTargets.forEach((target) => (target.checked = true));
19  }
20
21  uncheckAll() {
22    this.inputTargets.forEach((target) => (target.checked = false));
23  }
24}
25;

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.