Svelte-HV-split-panes
my kind of implementation for https://github.com/Readiz/svelte-split-pane
Modified:
- for the divider bar, event listeners will be available when "layout edit mode" is on. this is helpful if u want to lock/unlock editing of sizes.
Added:
- Touchscreen support
- ability to change size/thickness of divider bar (to make it small when not in edit mode, and large when in edit mode so it becomes accessible in touch devices)
- async loading of another module inside the splitter regions
- you can specify width using percent (%) or pixels (px). just use
leftPaneSizePx
or leftPaneSizePcent
to specify using your unit choice.
Problems:
- for now, you can specify the position of divider line using only left or top pane size. you cannot specify bottom/right pane size, it will be calculated automatically. You can only set the minimum width for them.