@profiscience/knockout-contrib-bindings-toggle
v2.0.2
Published
[![Version][npm-version-shield]][npm] [![Dependency Status][david-dm-shield]][david-dm] [![Peer Dependency Status][david-dm-peer-shield]][david-dm-peer] [![Dev Dependency Status][david-dm-dev-shield]][david-dm-dev] [![Downloads][npm-stats-shield]][npm-sta
Downloads
70
Readme
bindings.toggle
This package is intended for consumption via the @profiscience/knockout-contrib metapackage
Toggle an observable boolean on click. Disable with optional toggleDisable
binding.
Usage
<div data-bind="toggle: myObsBool, toggleDisable: ko.observable(false)"></div>