Hotkeys ux
Some checks failed
/ Run tests (push) Successful in 1m45s
/ Run system tests (push) Failing after 2m18s
/ Build, push and deploy image (push) Successful in 3m27s

This commit is contained in:
david 2024-11-09 05:08:46 +01:00
parent 016985d2cb
commit 644969c613
9 changed files with 55 additions and 11 deletions

View file

@ -0,0 +1,23 @@
import { Controller } from "@hotwired/stimulus"
// Connects to data-controller="details-list"
export default class extends Controller {
connect() {
}
openAll(e) {
console.log(e)
e.preventDefault();
this.element.querySelectorAll("details").forEach(el => {
el.setAttribute("open", "")
})
}
closeAll(e) {
console.log(e)
e.preventDefault();
this.element.querySelectorAll("details").forEach(el => {
el.removeAttribute("open")
})
}
}

View file

@ -16,6 +16,9 @@ application.register("check-link", CheckLinkController)
import CollapseChevronTogglerController from "./collapse_chevron_toggler_controller"
application.register("collapse-chevron-toggler", CollapseChevronTogglerController)
import DetailsListController from "./details_list_controller"
application.register("details-list", DetailsListController)
import DragController from "./drag_controller"
application.register("drag", DragController)