Sha256: ad6333c84464b26707b845db867db786187d049ec6595a9dbf4f9067f6a0292c
Contents?: true
Size: 637 Bytes
Versions: 17
Compression:
Stored size: 637 Bytes
Contents
import Split from "split-grid"; export default function (props) { const page = Alpine.store("page"); return { init() { Split({ [`${props.direction === "vertical" ? "row" : "column"}Gutters`]: [ { track: 1, element: this.$el }, ], minSize: props.minSize, writeStyle() {}, onDrag(dir, track, style) { const splits = style.split(" ").map((num) => parseInt(num)); props.onDrag(splits); }, onDragStart() { page.reflowing = true; }, onDragEnd() { page.reflowing = false; }, }); }, }; }
Version data entries
17 entries across 17 versions & 1 rubygems