knockout.toggle

2.0.0 • Public • Published

Knockout Toggle Binding

Knockout binding to toggle boolean view model properties.

Installation

npm install knockout-toggle

Usage

Include the script with your module bundler, then use the binding like so:

<button data-bind="toggle: myProp">Toggle the thing</button>
<span data-bind="visible: myProp">It's ON</span>

Readme

Keywords

Package Sidebar

Install

npm i knockout.toggle

Weekly Downloads

8

Version

2.0.0

License

MIT

Last publish

Collaborators

  • chadly
  • mdarens
  • tullo_x86