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

    1.0.1 • Public • Published

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

    Version Dependency Status Peer Dependency Status Dev Dependency Status Downloads

    Built-in click binding, filtered for ctrl+click

    NOTE: Consider MacOS (where meta+click is more intuitive) and mobile users (where there is no access to ctrl) when using this binding

    Usage

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

    Install

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

    DownloadsWeekly Downloads

    3

    Version

    1.0.1

    License

    WTFPL

    Unpacked Size

    7.36 kB

    Total Files

    11

    Last publish

    Collaborators

    • dorgeron
    • barsh