KoLite 1.1.0

KoLite - Lightweight Toolkit for KnockoutJS

KoLite contains a set of helpers to aid in creating MVVM applications using JavaScript and Knockout. Including:

asyncCommand
activity
dirtyFlag

For a quick start, see http://jpapa.me/kolitegh

Install-Package KoLite -Version 1.1.0
dotnet add package KoLite --version 1.1.0
paket add KoLite --version 1.1.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Release Notes

Command binding handler supports binding to native Knockout bindings as well as the Knockout event binding for DOM events.

Event object get passed on to callback on event bindings, to determine pressed key or keypress event.

Added ko.command as an alternative to ko.asyncCommand for synchronous tasks.

The asyncCommand's canExecute now defaults to !isExecuting if no canExecute delegate is specified. This eliminates the need of a canExecute delegate in you view-model when you only want disable the bound element when the command is executing.

Explicitly do not execute commands when canExecute returns falsy. This is needed for DOM elements like the <a> which cannot be disabled.

Renamed file knockout.asyncCommand.js to knockout.command.js as it now contains both async and sync commands.

Version History

Version Downloads Last updated
1.2.0 22,844 8/28/2014
1.1.0 (current version) 39,089 12/21/2012
1.0.4 7,161 9/30/2012
1.0.3 1,365 8/13/2012
1.0.2 218 8/13/2012
1.0.1 231 8/13/2012
1.0.0 227 8/13/2012