Giter Site home page Giter Site logo

I think the drag and drop method in the dev version is particularly good, but it seems that it cannot be used yet about golden-layout HOT 10 OPEN

2211898719 avatar 2211898719 commented on May 28, 2024
I think the drag and drop method in the dev version is particularly good, but it seems that it cannot be used yet

from golden-layout.

Comments (10)

PerBothner avatar PerBothner commented on May 28, 2024

I need more details: Exactly what are you actions? What happens? What do you expect to happen?

If you can show me you test code / application that would be helpful too.

from golden-layout.

2211898719 avatar 2211898719 commented on May 28, 2024

I added a drag and drop listening feature on the left tab
current.newDragSource(tabBarRef.value[i], (e) => { return { title: serverList.value[i].name, type: 'component', componentType: 'termComponent', componentState: { server: { ...serverList.value[i], operationId: val } } } })

I hope to be able to drag and drop from the tab to the terminal window on the right. In version 2.6, this code can be used normally.

However, version 2.6 is not based on an HTML drag and drop API implementation, which may cause conflicts in the drag and drop sorting of my left tab

I currently do not have a demo site, but I can provide the code and video

from golden-layout.

2211898719 avatar 2211898719 commented on May 28, 2024
Screen-2024-03-19-.31232.mp4
Screen-2024-03-19-.30802.mp4

from golden-layout.

PerBothner avatar PerBothner commented on May 28, 2024

It's been a while since I worked on GoldenLayout, but it looks I never got around to implementing DragSource - I don't use it for DomTerm. I'll take a look into seeing what is needed.

from golden-layout.

2211898719 avatar 2211898719 commented on May 28, 2024

Do you have any corresponding documentation or tutorials on how to use dev branch drag and drop to generate window APIs

from golden-layout.

PerBothner avatar PerBothner commented on May 28, 2024

I don't understand what you mean by "generating window APIs".

(I'm working on newDragSource. However, first I'm looking at a related issue: Making it work when useDragAndDrop is set to false.)

from golden-layout.

2211898719 avatar 2211898719 commented on May 28, 2024

https://golden-layout.com/examples/#d508753b29c3001c24218bf3a6b25141

from golden-layout.

2211898719 avatar 2211898719 commented on May 28, 2024

What I want to achieve is just like this example

from golden-layout.

PerBothner avatar PerBothner commented on May 28, 2024

I find this example very confusing - it is not obvious how to use it.
More to the point: it's a "kitchen sink" of lots of different modes and interaction styles - whihc is OK for a demo, but useless as a wishlist. Specifically, it doesn't tell me what you think is both important and not working in the dev branch. You need to be more specific.
However, I am working on newDragSource. Assuming having that is high on the list of things you want, I suggest waiting until I have that working.

from golden-layout.

2211898719 avatar 2211898719 commented on May 28, 2024

What I actually want is the new newDragSource API, and once the development is completed, I will be the first to use it. thanks

from golden-layout.

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.