Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

multiple nested grids with regular HTML items in between #1945

Closed
josephclawrence opened this issue Mar 29, 2022 · 11 comments
Closed

multiple nested grids with regular HTML items in between #1945

josephclawrence opened this issue Mar 29, 2022 · 11 comments

Comments

@josephclawrence
Copy link

I am working on a project with a lot of tab widgets. Each parent tab widget is a GridStack item in a parent GridStack layout, capable of being moved and resized. Each tab widget has at least two tabs.

Ideally, I would also like each tab to be a nested GridStack, capable of holding multiple GridStack items. This is currently impossible because I can have a maximum of 1 nested GridStack inside each tab widget GridStack item.

Is this something that is currently being considered, or could be considered, for further development?

Thank you.

@adumesny
Copy link
Member

sounds like a dup of #1943 - anything can be done with the right donation. I just don't have free bandwidth these days.

@josephclawrence
Copy link
Author

OK, thank you - how can I contact you privately? I don't think this is a duplicate, since I'm talking about multiple nested GridStacks at the same hierarchical level, not more and more deeply nested GridStacks.

@adumesny
Copy link
Member

adumesny commented Mar 30, 2022

you mean like https://gridstackjs.com/demo/nested.html already does ? parent has 2 items that are subgrids (darker yellow).

Not sure why you would want subGrid property to be an array - that woudl also break today's API and complicate the code to handle either types so very unlikely. if you wanted to move a bunch of subGrids as one, then you could do that today with a parent item that has multiple subgrids items - 2 nested subgrids, hence dup of the other request ? (which I thought would work but didn't test in the demo code).

@josephclawrence
Copy link
Author

josephclawrence commented Mar 30, 2022 via email

@adumesny
Copy link
Member

draw a picture of what you are looking for...

@josephclawrence
Copy link
Author

josephclawrence commented Mar 30, 2022 via email

@adumesny
Copy link
Member

adumesny commented Apr 4, 2022

I think you can do what you pictured with multiple grids, not nested in the lib way per say (since there are parent tabs in between).

the only question is what is the interaction between the dark orange items and yellow items (both grid items) ? you may or not be able to drag an orange item into the pink grid container, or you can prevent that (can only accept certain class types).

@josephclawrence
Copy link
Author

josephclawrence commented Apr 5, 2022 via email

@adumesny
Copy link
Member

adumesny commented Apr 5, 2022

ok, sounds like the lib would have to handle separate but nested DOM grids with regular items in between then. If want this, then you need to provide a simple example of the above html with code, and ping me directly for donation for that feature...

Otherwise you might be able to init each grid (start with children) directly with a unique id and hope it doesn't find the nested part...

@v1talii-dev
Copy link
Contributor

+1, the functionality that @josephclawrence wrote about would be very useful.

@adumesny adumesny changed the title Requirement for multiple nested GridStacks multiple nested grids with regular HTML items in between Sep 26, 2022
@adumesny
Copy link
Member

closing since there are no responses

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants