Miss any of our Open RFC calls?Watch the recordings here! »

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

1.0.1 • Public • Published

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

Version Dependency Status Peer Dependency Status Dev Dependency Status Downloads

Built-in click binding, filtered for shift+click

NOTE: Consider mobile users (where there is no access to shift) when using this binding

Usage

// register as "shiftClick"
import '@profiscience/knockout-contrib-bindings-shift-click'
 
// register as custom name
import * as ko from 'knockout'
import { shiftClickBindingHandler } from '@profiscience/knockout-contrib-bindings-shift-click'
ko.bindingHandlers['click.shift'] = shiftClickBindingHandler
<div data-bind="shiftClick: (event, data) => console.log(data)"></div>

Install

npm i @profiscience/knockout-contrib-bindings-shift-click

DownloadsWeekly Downloads

8

Version

1.0.1

License

WTFPL

Unpacked Size

7.36 kB

Total Files

11

Last publish

Collaborators

  • avatar
  • avatar