Skip to content

Customized thin wrapper around the FT's Fastclick library that utilizes needsclick class better for plugins like angular-daterangepicker

Notifications You must be signed in to change notification settings

pinchnzoom/ng-fastclick-cps

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ng-fastclick-cps - Child Protective Services

Angular Fastclick Child Protective Services, was designed...

To what: Allow any children inside of element with the '.needsclick' class to ignore fastclick.

To how: By targeting elements with the .needsclass on up through the DOM.

To why: Because ng-fastclick did not work with the angular-datepicker plugin on Phonegap builds on iOS.

This plugin was designed to work with fragaria's faulty angular-daterangepicker

This is a fork of 8bitDesigner's faulty ng-fastclick which is a very thin (3 line!) Angular wrapper around the FT's fantastic FastClick

Installation

In your Angular project, run bower install --save ng-fastclick-cps to save the module. Then, in your HTML, add:

<script src="/path/to/bower_components/ng-fastclick-cps/dist/index.min.js"></script>

And nextly, in your Angular module, include ng-fastclick-cps as a dependency:

angular.module('my-app', ['ng-fastclick-cps'])

And Lastly, add the '.needsclick' class for elements that you want to avoid using fastclick functionality.

<any class="needsclick"></any>

About

Customized thin wrapper around the FT's Fastclick library that utilizes needsclick class better for plugins like angular-daterangepicker

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%