GithubHelp home page GithubHelp logo

parsleyjs-meteor's Introduction

Parsley.js

Meteor packaging for Parsley.js.

If I forgot to upgrade to the latest Parsley version, please start a new issue or find a way to notify me and I'll happily upgrade it for you. Or if you want to be nice and save me a few seconds; fork it, make a PR and I'll merge it.

Quick Setup

For 0.9.0 and newer run this to install.

meteor add amr:parsley.js

For versions older than 0.9.0 run this to install.

mrt add parsley.js

Edit your .js file

Template.name.rendered = function () {

  // Setup parsley form validation
  // replace form with the id of your form
  $('#form').parsley({trigger: 'change'});
}

Don't forget to include a data-parsley-validate element in every form to be validated

<form id="form" data-parsley-validate>
  ... 
</form>

Customizing CSS using Less

Override the default parsley.js css settings by customizing the less variables below in your own code.

@success_fg: #468847;
@success_bg: #DFF0D8;
@success_border: #D6E9C6;

@error_fg: #B94A48;
@error_bg: #F2DEDE;
@error_border: #EED3D7;

@error_list_font_color: red;

parsleyjs-meteor's People

Contributors

amrali avatar em0ney avatar rootedsoftware avatar yankeyhotel avatar

Watchers

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