Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

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

1.0.1 • Public • Published

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

Version Dependency Status Peer Dependency Status Dev Dependency Status Downloads

Built-in click binding, filtered for alt+click

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

Usage

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

Install

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

DownloadsWeekly Downloads

0

Version

1.0.1

License

WTFPL

Unpacked Size

7.26 kB

Total Files

11

Last publish

Collaborators

  • avatar
  • avatar