GithubHelp home page GithubHelp logo

david-desmaisons / draggable-example Goto Github PK

View Code? Open in Web Editor NEW
511.0 18.0 282.0 4.06 MB

vue.draggable example

Home Page: https://david-desmaisons.github.io/draggable-example/

JavaScript 13.06% HTML 9.70% Vue 77.24%
vue2 sortable drag-and-drop

draggable-example's Introduction

David Desmaisons

Linkedin Badge Buy me a coffee contact

my octocat


⚡ About

  • French born, living in Brazil
  • Programming since the age of 10 (saudades Amstrad CPC 6128).
  • I may accept freelance opportunities if related to Vue.js or Neutronium.
  • Always curious and learning new languages/ algorithms/ concepts/ frameworks .
  • If I am looking for some piece of software that I can not find, I may end up implementing and publishing it as a github repository.

🚀Main projects

  • Neutronium a C# framework to build .NET MVVM desktop applications using HTML, CSS and javascript.
  • RateLimiter a C# client-side rate limiting utility.
  • ComposableAsync A framework to create, compose and inject asynchronous behaviors in .Net Framework and .Net Core. Including a circuit breaker and an in process actor model.
  • CodeDependencyScanner A C# application to visualize and interact with .Net assembly objects (class, interface, enum, struct) and their dependencies.
  • Vue.Draggable and vue.draggable.next components that handle drag-and-drop.
  • Vue.D3.tree a component to display tree based on D3.js layout.
  • Vue.D3.sunburst a sunburst component based on D3.js.
  • 📈 vue-plotly a wrapper for plotly.js.
  • 🛠️ vue-cli-plugin-component a vue-cli 3 plugin to create component.
  • 🛠️ ComponentFixture an Interactive sandox playground for vue components.
  • Vue.Resize a directive to detect resize events.

🔭Currently

  • Improving Vue.D3.sunburst

☕ Others

  • 🖋 I wrote an article about using slot for behaviors in vue.js.
  • ☕If one of my repo has helped you, especially if you are using it in production, please consider making a donation.

Top Langs

draggable-example's People

Contributors

david-desmaisons avatar linusg avatar

Stargazers

 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  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  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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

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

draggable-example's Issues

Get the Id of new and old index

Suppose I have a table with tr

<draggable :element="'tbody'" @EnD = "onEnd">

{{ offer.id }}

What I need is to get the id of the dragged element as well as the id of destination. Any ideas on this?

table move multiple rows

hello, I want to move several lines together if you want the same movement, how can I do this?

Example (move group 1 all together)
tr-1
tr-1.1
tr-1.2
tr-2
tr-3
tr-3.1

thanks

Browser Query

Was just trying to run the examples, getting error:
ERROR in Unknown browser query basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
@ ./~/bootstrap/dist/css/bootstrap.css 4:14-73 13:2-17:4 14:20-79

Any help?

is it possible to click on icon in the list to drag ? not the entire list click

now it is like we can click on list to drag and drop!
but....
can i click on an icon in the list to drag?

<draggable class="list-group" element="ul" v-model="lists" :options="dragOptions" :move="onMove" @start="isDragging=true" @end="isDragging=false"> <transition-group type="transition" :name="'flip-list'"> <div class="icon-list selected" v-for="list in lists" :key='list.order'> <!-- some code --> <i class="faa fa-android></i> </div> </transition-group> </draggable>

in above code we can click any part of div to drag
i want to drag using an icon in it.

Disable drop but enable drag out

Hello.
Firts of all : Nice job! Works very easy.
Now to my question:
I have 2 lists, one with available people, and one with subscribed persons.
in the subscribed-persons, i have a maximum amount of allowed subscriptions. When this amount is reached, I want to disable drop on that list. but I want to still be able to drag persons out of this list.
if I do like this:
:options="{group:'persons', disabled: subscribedPersons.length == maxSubscriptions}
I cant drop any more users in it, but the problem is that then I can't remove any person from this list either.
I did it programmatically with the :move binding. Is there a better way to do it?

Can you help me here?
Thanks a lot

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.