Ninja Pumpkin Mutants

    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>

    Install

    npm i knockout.toggle

    DownloadsWeekly Downloads

    1

    Version

    2.0.0

    License

    MIT

    Last publish

    Collaborators

    • chadly
    • mdarens
    • tullo_x86