🚀 DAY 5 OF LAUNCH WEEK: Introducing Socket Firewall Enterprise.Learn more →
Socket
Book a DemoInstallSign in
Socket

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

Package Overview
Dependencies
Maintainers
2
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

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

Shift Click Binding for KnockoutJS

latest
Source
npmnpm
Version
1.0.1
Version published
Maintainers
2
Created
Source

@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>

Keywords

knockout

FAQs

Package last updated on 13 Apr 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts