goetzrobin / spartan

Cutting-edge tools powering Angular full-stack development.
https://spartan.ng
MIT License
1.42k stars 152 forks source link

RFC: Resizable #120

Open goetzrobin opened 9 months ago

goetzrobin commented 9 months ago

Which scope/s are relevant/related to the feature request?

Don't know / other

Information

TBD

Describe any alternatives/workarounds you're currently using

No response

I would be willing to submit a PR to fix this issue

maurice0800 commented 9 months ago

I think we could use this library https://www.npmjs.com/package/angular-resizable-element for brain implementation, since it already provides directives, which we could provide a wrapper for. Helm implementation should be fairly easy, because we might only need to create a styled ResizeHandle

goetzrobin commented 9 months ago

@maurice0800 I like the idea of building on top of great libraries that already exist! I'll do some digging if this allows us to do something like shadcn does with the split sections inside one bigger. Also, do you know if this is still maintained? Seems like there hasn't been much development recently 👀

alexciesielski commented 8 months ago

I'm not sure of the goal for the Resizable component, but if it's about splitting the screen into two (or more) elements then I've had the best experience with angular-split. It is an amazing library with all the features I ever needed for building "split screen" apps, like a resizable left-nav with main content

https://angular-split.github.io/

goetzrobin commented 8 months ago

@alexciesielski this is exactly what I was looking for! I think we can simply build a hlm component on top of it that adds a handle!

alexciesielski commented 8 months ago

I even implemented a drawer (#118) with that library in a project, although that took some additional effort. But it is possible. :)

goetzrobin commented 4 months ago

I think after this PR is merged we can go ahead with your suggestion @alexciesielski: https://github.com/angular-split/angular-split/pull/444