2.0.0-beta3 • Published 9 years ago

gremlins-jquery v2.0.0-beta3

Weekly downloads
4
License
MIT
Repository
github
Last release
9 years ago

gremlins-jquery

GREMLIN.JS jQuery mixin that supports event and element maps.

Installation

requires gremlins@1.1.x

NPM

$ npm install gremlins-jquery

make sure you have jQuery installed from npm, too.

Usage

<foo-gremlin>
    <p class="content"></p>
    <button>clicker</button>
</foo-gremlin>
const gremlins = require('gremlins');
const gremlinsJquery = require('gremlins-jquery');
  
gremlins.create('foo-gremlin', {
    mixins: [gremlinsJquery],
    elements: {
      '.content': '$content'
    },
    events: {
      'click button': 'onClick'
    },
    created() {
      this.$el.addClass('ready');
    },
    onClick() {
      this.$content.text('foo is here!');
    }
});
2.0.0-beta3

9 years ago

2.0.0-beta2

9 years ago

2.0.0-beta1

9 years ago

1.1.0

9 years ago

1.0.0

9 years ago

1.0.0-rc.1

9 years ago

1.0.0-rc.0

9 years ago

0.6.0

10 years ago

0.5.2

10 years ago

0.5.1

10 years ago

0.5.0

10 years ago

0.4.3

10 years ago

0.4.2

10 years ago

0.4.1

10 years ago

0.4.0

10 years ago