mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-23 03:06:21 +00:00
12 lines
257 B
JavaScript
12 lines
257 B
JavaScript
|
import { Controller } from "stimulus";
|
||
|
|
||
|
export default class extends Controller {
|
||
|
static targets = ["toggle", "input"];
|
||
|
|
||
|
toggle(event = undefined) {
|
||
|
this.inputTargets.forEach(input => {
|
||
|
input.checked = this.toggleTarget.checked;
|
||
|
});
|
||
|
}
|
||
|
}
|