@gondel/plugin-jquery
v1.2.8
Published
Provide jQuery helper for Gondel components
Downloads
135
Readme
jQuery Plugin
Gondel is written in vanilla js.
For projects where jQuery is already included the jQuery plugin will allow you easy
access to the current ctx.
Installation
npm i --save @gondel/plugin-jquery
Usage
Class
import { GondelJqueryComponent } from '@gondel/plugin-jquery';
class MyComponent extends GondelJqueryComponent {
start() {
console.log(this.$ctx);
}
}
Mixin
import { gondelJQueryMixin } from '@gondel/plugin-jquery';
class MyComponent extends gondelJQueryMixin(GondelBaseComponent) {
start() {
console.log(this.$ctx);
}
}