sioux-segue
Version:
Push and modal segue for sioux
31 lines (30 loc) • 1.61 kB
JSON
{
"name": "sioux-global",
"version": "0.0.4",
"description": "a module for sioux projects containing the basic features",
"main": "index.js",
"dependencies": {
"node-touch": "*"
},
"styles": [
"style.css"
],
"keywords": [
"sioux",
"ui",
"global"
],
"repository": {
"type": "git",
"url": "http://github.com/gerhardberger/sioux/global.git"
},
"author": {
"name": "Gerhard Berger",
"email": "93.morph@gmail.com",
"url": "https://twitter.com/gerhard_berger"
},
"readme": "## sioux-global\n\nThe collection of basic features that are important and useful for working with the other parts of the `sioux` project. It is optional to make it global, but it is recommended. The features listed after, are basically just shorthands to the DOM ones.\n\n``` js\nvar $ = require('sioux-global');\n// window.$ = $;\n\nconsole.log($.isTouchDevice);\n\n$('button')\n .on('tap', function () {\n console.log('tapped!');\n })\n .on('touchleave', function (event) {\n console.log('left!');\n })\n .css('color', 'red')\n .css({\n 'border-radius': '5px'\n , 'border': '1px solid red'\n });\n```\n\n#### $(selectorText, parentElement<optional>)\nmatches the elements with the `selectorText`, if `parentElement` defined it will query in it\n\n#### on(eventName, handler)\nadds an event handler to the matched elements\n\n#### off(eventName, handler)\nremoves the event handler from the matched elements\n\n#### css(obj)\npretty much same as in jquery",
"readmeFilename": "README.md",
"_id": "sioux-global@0.0.4",
"_from": "sioux-global@"
}