Files
fizzy/app/javascript/controllers/expand_btn_controller.js
T
2025-04-08 16:01:45 -05:00

18 lines
320 B
JavaScript

import { Controller } from "@hotwired/stimulus"
export default class extends Controller {
static targets = [ "dialog", "content" ]
connect() {
const width = this.dialogTarget.offsetWidth;
}
toggle() {
const isOpen = this.dialogTarget.open;
if (!isOpen) {
console.log("isOpen");
}
}
}