@gondel/plugin-jquery
v1.2.10
Published
Provide jQuery helper for Gondel components
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-jqueryUsage
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);
}
}