@profiscience/knockout-contrib-bindings-click-ctrl

[![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 profiscienceKnockoutContribBindingsClickCtrl from 'https://cdn.skypack.dev/@profiscience/knockout-contrib-bindings-click-ctrl';
</script>

README

bindings.click.ctrl

Version Dependency Status Peer Dependency Status Dev Dependency Status Downloads

This package is intended for consumption via the @profiscience/knockout-contrib metapackage

Built-in click binding, filtered for ctrl+click

NOTE: Consider MacOS (where meta+click is more intuitive) and mobile users (where there is no access to ctrl) when using this binding

Usage

Accepts a function with the same API as the built-in [click-binding][]

<div data-bind="click.ctrl: (event, data) => console.log(data)"></div>