@profiscience/knockout-contrib-bindings-alt-click
v1.0.1
Published
KnockoutJS Alt+Click Binding
Downloads
3
Readme
@profiscience/knockout-contrib-bindings-alt-click
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>