2.0.0-beta3 • Published 7 years ago

gremlins-jquery v2.0.0-beta3

Weekly downloads
4
License
MIT
Repository
github
Last release
7 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

7 years ago

2.0.0-beta2

7 years ago

2.0.0-beta1

7 years ago

1.1.0

8 years ago

1.0.0

8 years ago

1.0.0-rc.1

8 years ago

1.0.0-rc.0

8 years ago

0.6.0

8 years ago

0.5.2

9 years ago

0.5.1

9 years ago

0.5.0

9 years ago

0.4.3

9 years ago

0.4.2

9 years ago

0.4.1

9 years ago

0.4.0

9 years ago