@profiscience/knockout-contrib-bindings-jquery

[![Version][npm-version-shield]][npm] [![Dependency Status][david-dm-shield]][david-dm] [![Peer Dependency Status][david-dm-peer-shield]][david-dm-peer] [![Dev Dependency Status][david-dm-dev-shield]][david-dm-dev] [![Downloads][npm-stats-shield]][npm-sta

Usage no npm install needed!

<script type="module">
  import profiscienceKnockoutContribBindingsJquery from 'https://cdn.skypack.dev/@profiscience/knockout-contrib-bindings-jquery';
</script>

README

bindings.jquery

Version Dependency Status Peer Dependency Status Dev Dependency Status Downloads

This package is intended for consumption via the @profiscience/knockout-contrib metapackage and has a peer dependency on jquery and knockout-punches

Invoke a jQuery plugin on an element

Usage

<div id="my-element" data-bind="$.somePlugin: pluginOpts"></div>

...is equivalent to calling $('#my-element').somePlugin(pluginOpts), without having to worry about when the element is rendered.