Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8605499
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T02:50:52+00:00 2026-06-12T02:50:52+00:00

Obj:- To add drag n drop ability in the meteor ToDo example app. Why:-

  • 0

Obj:-

To add drag n drop ability in the meteor ToDo example app.

Why:-

Going through the learning curve.

What i can think of :-

Using jquery UI (as external js) and bind the update event to todo lists. having a data field on the li items, so as to execute update command from the same function itself.

Was wondering if there exists a more meteor-y approach..

Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T02:50:53+00:00Added an answer on June 12, 2026 at 2:50 am

    From this answer and from Lloyd’s answer above, here is the work-around:

    <template name="todos">
    ...code...
      {{#constant}}
      {{sort_code}}
      {{/constant}}
    </template>
    

    —

    <div class="todo-text" data-id="{{_id}}">{{text}}</div>
    

    in todo.js

    Template.todos.sort_code = function(){
    Meteor.defer(function(){
    $('#item-list').sortable({
      update: function(e,iq){
        $('div.todo-text',this).each(function(i){
                var id = $(this).attr('data-id');
                Todos.update(id, {$set:{order:i+1}});
      });
      },
    });
    $( "#item-list" ).disableSelection();
    console.log('dd');
    
    });
    };
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

How do I know when a transaction commit fails? var obj = App.store.findAll(App.Todo).get('firstObject'); var
I want to add new obj of JSON like: 128: { Msg: [{ me:
I am a noob at OBJ-C :) I am trying to add a UIImageView
I'm looking for an easy way in Obj.C to do add a space between
We have multiple threads calling add(obj) on an ArrayList . My theory is that
I want to have dict / list to which I can add values, just
Suppose I have ArrayList with following contents public void add() { obj.add(1); obj.add(123456789); obj.add(1.222);
class A(object): _all = set() def __new__(cls): obj = super(A,cls).__new__(cls) cls._all.add(obj) return obj class
So insteed of writing: if (obj.Collection == null) obj.Collection = new Collection(); obj.Collection.Add(something); I
Here is my code: public static class DynamicExtensions public static void Add(this ExpandoObject obj,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.