@profiscience/knockout-contrib-bindings-meta-click
v1.0.1
Published
KnockoutJS Meta+Click Binding
Downloads
3
Readme
@profiscience/knockout-contrib-bindings-meta-click
Built-in click binding, filtered for meta+click
NOTE: Consider mobile users (where there is no access to meta) when using this binding
Usage
// register as "metaClick"
import '@profiscience/knockout-contrib-bindings-meta-click'
// register as custom name
import * as ko from 'knockout'
import { metaClickBindingHandler } from '@profiscience/knockout-contrib-bindings-meta-click'
ko.bindingHandlers['click.meta'] = metaClickBindingHandler
<div data-bind="metaClick: (event, data) => console.log(data)"></div>