Re:Show HN: TypeScript/React/Vue Window Layout Manager (Tabs...
by mathuo on Saturday January 11, 2025 @02:41PM
(#42668400)
In terms of rendering modes both approaches are supported
https://dockview.dev/docs/core/panels/rendering
There are options to maintain the panels content within the DOM at all times (using an approach like you mentioned with display: none) and options to remove content from the DOM.
In terms of vanilla TS the library is almost entire written in vanilla TS with small wrapper libraries for Vue and React.
In theory wrappers could be written for other frameworks such as Angular (which is something I would like to get done this year)
Loading and saving state is supported though
https://dockview.dev/docs/core/state/save
Let me know if that answers the question
Re:Show HN: TypeScript/React/Vue Window Layout Manager (Tabs...
by achierius on Saturday January 11, 2025 @06:51PM
(#42669941)
I might have missed something -- how do AI apps come into this? Was this application written with AI, or for AI applications in particular? (I don't imagine it uses AI for the actual layout management or anything like that)
Re:Show HN: TypeScript/React/Vue Window Layout Manager (Tabs...
by v3ss0n on Saturday January 11, 2025 @09:32PM
(#42670768)
That's I am wondering too.. may be commenter itself is an AI?
Re:Show HN: TypeScript/React/Vue Window Layout Manager (Tabs...
by mathuo on Sunday January 12, 2025 @04:17AM
(#42672276)
no ai :) just a vanilla layout manager. I assume the above comment is by somebody building an ai project that could use a layout manager
Technically speaking, I've long wondered about mount/unmount of components as panels are dragged about and their visibility changed. Sometimes it's more costly to mount/unmount than to display:none.
Second, you have basically a declarative structure for these panels, are there plans to expose a Vite plugin for example that could export saved TS layouts, where functions (ie: TS imports) map to the panel contents? (trying to think outside of JSX and more vanilla TS)
Fantastic work!