Sha256: 543b753c32e429ae0c346e26288d23b7f6afb7d1c6b87ac29b653b7187b032e5
Contents?: true
Size: 557 Bytes
Versions: 33
Compression:
Stored size: 557 Bytes
Contents
import { CocoComponent } from "@js/coco"; import { getData } from "@helpers/alpine"; export default CocoComponent("appLayoutPickerButton", ({ selected }) => { return { selectedLayout: selected, getPicker() { return getData( this.$root.querySelector("[data-role='layout-picker']") .firstElementChild ); }, getButton() { return getData(this.$root.querySelector(".layout-picker-trigger")); }, init() { this.$watch("selectedLayout", () => this.getButton().hideDropdown()); }, }; });
Version data entries
33 entries across 33 versions & 1 rubygems