7 changed files with 82 additions and 14 deletions
@ -0,0 +1,9 @@
@@ -0,0 +1,9 @@
|
||||
import { Controller } from "@hotwired/stimulus"; |
||||
|
||||
export default class extends Controller { |
||||
static targets = ["menu"]; |
||||
|
||||
toggle() { |
||||
this.menuTarget.classList.toggle("active"); |
||||
} |
||||
} |
||||
Loading…
Reference in new issue