Giter VIP home page Giter VIP logo

cltouch's Introduction

Climber - clTouch

Climber Touch Directives for Qlik Sense

A qvangular module to add directives for Qlik Sense input events. Useful when using ng-repeat.

clTouch 1.0 Github All Releases GitHub stars Issues

Info

Version: 1.0.0
Author: Karl Fredberg [Github] [Twitter]

cl-activate cl-swipestart cl-swipeupdate cl-swipecancel cl-swipe

Installing

Copy clTouch.js into your extension directory.

Add the file in the define function in your extensions main js file. Example below clTouch.js is in a subfolder of the extension folder /lib/js/.

define([
        'jquery',
        './properties',
        './initialproperties',
        'text!./lib/css/style.css',
        'text!./lib/partials/template.html',
        './lib/js/clTouch'
    ],

Usage

Add the attributes to the elements in your template:

<div ng-repeat="item in items" 
	 cl-swipestart="onSwipestart($event)" 
	 cl-swipeupdate="onSwipeupdate($event)" 
	 cl-swipe="onSwipe($event)">{{item.title}}</div>

In your controller in your mainExtensionFile.js add the functions you refered to in the template

$scope.onSwipestart = function($event) {
   console.log('touchstart event called');
}
$scope.onSwipeupdate = function($event) {
   console.log('touchstart event called');
}
$scope.onSwipe = function($event) {
   console.log('touchstart event called');
}
```

## License

Released under the MIT License - see [`license.txt`](https://github.com/kfredberg/clTouch/blob/master/license) for details.

[![Climber - clTouch](https://github.com/kfredberg/clTouch/blob/master/climber-logo_small.png)](https://www.climber.eu)

cltouch's People

Stargazers

Karl Fredberg Sjöstrand avatar

Watchers

Karl Fredberg Sjöstrand avatar James Cloos 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.