Giter Site home page Giter Site logo

forms-tutorial's People

Contributors

vladbalan avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

forms-tutorial's Issues

Create the tutorial

We want to build a tutorial using this: http://info.meteor.com/blog/step-by-step-tutorials-with-git

Here are the steps that we're going to build:

  1. Create a meteor app and add the useful:forms package, and any other packages we need for the tutorial (split into steps 1.1 and 1.2, 1.3 etc.)
  2. Create a simple form which captures a task, and comments (two fields, to sub-steps)
  3. Create a simple ui to display the tasks, and allow users to edit a task by selecting it
  4. Create a custom date input and allow users to specify a due date for tasks
  5. Update form to auto-save

Each of the above should be a step in the tutorial, so we can generate the snippets for the tutorial.

Take advantage of the data context

In the event handler 'click .collection-item': function (e, tmpl) { you are pulling data out of the DOM, and also injecting the _id of the document into the DOM using a hidden form field.

This is not the meteor way. Check out the data context for the event handler by placing a debugger statement at the top of the event handler and inspect the this object. Adjust the event handler accordingly.

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.