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.