GithubHelp home page GithubHelp logo

ember-cli-sortable's People

Contributors

jqyu avatar maazali avatar mike-north avatar mnoble avatar

Stargazers

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

Watchers

 avatar  avatar

ember-cli-sortable's Issues

calling onItemMoveAction with the re-ordered collection would be nice

I have a situation where I want to make a list of images sortable. The collection of images is using sortBy to maintain order using a position property. This gets stored on the backend, and I need to update the server with a contiguous sequence of positions every time you re-order the list.

Getting the old and new indices in the onItemMoveAction isn't very helpful, because it only lets me update that position property on the single item dropped. Since I'm using a sorted collection, every time I use this.get('images') they get re-sorted according to their position.

Passing the collection in as an argument to the action solves this problem, because then I have the newly ordered collection of images. I can update the position property on all of them, and then make my request to the server to persist the ordering.

Would you accept a PR for this?

Multiple groups and items

First off, thanks for converting this to Ember.

I used this library outside of Ember and it was able to do everything that I needed it to, but I am unable to figure out how to get this addon to work the same way. Here is what I have:

I have several dynamically added groups, each with fields within them. I need to be able to reorder the groups, as well as the fields. I also need to be able to drag the fields from one group to another, dropping them in where I need them.

Is there a way to get this setup using this addon?

Thank you very much!

Won't work for me

Hi!

I'm trying to make use of ember-cli-sortable. I do see a list of items, but no styles are applied to the list and i'm unable to sort it: when i try dragging an item with the mouse, text is selected instead.

Any suggestions?

Build failing on Ember 2.12

Maybe related to having Ember moved away from bower_components, but it's throwing this error:

Error: Cannot find module '/bower_components/ember/ember-template-compiler'
at Class.module.exports.htmlbarsOptions (/node_modules/ember-cli-sortable/node_modules/ember-cli-htmlbars/ember-addon-main.js:70:25)

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.