Giter Club home page Giter Club logo

Comments (3)

mathuo avatar mathuo commented on July 17, 2024 2

By creating another dock within the panel of an existing dock you are creating a new instance of the dock component. They are not linked internally in any way and do not know about each other.

Currently it is expected that the if the user creates a nested dock they save that nested dock state seperately and use their application state (perhaps associate that nested layout with the id of the panel it's nested within) to link everything back together. Think of the nested dock JSON as just some application state you would associate with that panel within your application.

I will leave the issue open for discussion though.

from dockview.

zhengminhui avatar zhengminhui commented on July 17, 2024

I guess the problem is because when we create a nested dockview, it will create a new API instance. However when we save the state by calling toJson we just handled the parent/container API. But I'm not sure how to merge/combine these apis into one and save to localstorage.

from dockview.

zhengminhui avatar zhengminhui commented on July 17, 2024

Thanks for your confirmation. Now I save and re-read them separately under different localstorage keys and it works fine.
The reason I asked at first is because I'm not sure if the API instances are isolated or like a tree structure.

Thank you very much and I really like your library.

from dockview.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.