Giter Site home page Giter Site logo

dragdroplayouts's Introduction

DragDropLayouts

Build Status

Currently when you want to drag and drop between layouts you will have to wrap the source component in a DragAndDropWrapper. Many times this is adequate but it tends to add some complexity to the code and yet another element in the DOM. It would be much nicer if the layouts would handle this for you.

To solve this issue I have extended the core layouts and implemented the necessary functionality so the layouts are valid drag sources and drop targets. This means that in your code you don't have to concern yourself with the drag and drop when adding components, only enable drag&drop in the layout and you are ready to go!

A running demo can be found here

Supported layouts

  • AbsoluteLayout (DDAbsoluteLayout)
  • HorizontalLayout (DDHorizontalLayout)
  • VerticalLayout (DDVerticalLayout)
  • GridLayout (DDGridLayout)
  • HorizontalSplitPanel (DDHorizontalSplitPanel)
  • VerticalSplitPanel (DDVerticalSplitPanel)
  • TabSheet (DDTabSheet)
  • Accordion (DDAccordion)
  • CssLayout (DDCssLayout)
  • FormLayout (DDFormLayout)
  • Panel (DDPanel)

Versioning

Please see the version table below to decide which version to use in your project:

Vaadin DragDropLayouts
6.x 0.x
7.0.x+ 1.0.x
7.2.x+ 1.1.x
7.6.x+ 1.2.x
7.7.x+ 1.3.x
8.x 1.4.x

Branches

Currently there are two active development streams; one for Framework 7 and another one for Framework 8. Pull-requests that target the Framework 7 stream should be created against the vaadin7 branch. Changes for the Framework 8 version can be created for master as usual. Note that changes that fix an issue in both versions need two PR's respectively.

dragdroplayouts's People

Contributors

johndevs avatar bogdanudrescu avatar victorroeder avatar anssit avatar mhosio avatar juhapyy avatar korzha avatar a-schild avatar ripla avatar jreznot avatar

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.