GithubHelp home page GithubHelp logo

cuba-platform / cuba-dnd Goto Github PK

View Code? Open in Web Editor NEW
2.0 30.0 1.0 328 KB

Provides Drag & Drop functionality for platform UI components

License: Apache License 2.0

Java 100.00%
cuba-platform cuba-component drag-n-drop drag-and-drop

cuba-dnd's People

Contributors

flaurite avatar glebshalyganov avatar jreznot avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

douit

cuba-dnd's Issues

Question: disable dropping between subcomponents in DDCssLayout

Hello,
I have a question about the previewing of eligable drop locations. When I have a target layout with some items already present, I expect a preview between those items when I hover over the drop location while holding a draggable item. This works find when the items already present are leaf components (e.g. buttons). However, when they are composite components (e.g. a vbox or hbox) I find some unusual behaviour: the previewer also previews drop locations between subcomponents of those items.

For example, provided the following descriptor:

<dnd:dndCssLayout id="dashboard"
    dragMode="CLONE"
    height="AUTO"
    width="100%"
    stylename="min-height">
    <vbox>
        <button caption="1"/>
        <button caption="2"/>
    </vbox>
    <vbox>
        <button caption="3"/>
        <button caption="4"/>
    </vbox>
</dnd:dndCssLayout>

...I can still drag items between the subcomponents of the vbox.

bug

In my application, the items in my drop target are highly composite with many nested subcomponents. The current preview behaviour results in a very glitchy UI. How can I make sure that only locations are previewed between root elements of the target layout?

How to install the addon?

I have some troubles with installing the addon. I download and open it as project in Studio, when i try to add it in my main project as Custom component, I get error that artifact not found

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.