@profiscience/knockout-contrib-bindings-shift-click
TypeScript icon, indicating that this package has built-in type declarations

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>

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.1
    0
    • latest

Version History

Package Sidebar

Install

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

Weekly Downloads

0

Version

1.0.1

License

WTFPL

Unpacked Size

7.36 kB

Total Files

11

Last publish

Collaborators

  • dorgeron
  • barsh