KoLite 1.2.0
dotnet add package KoLite --version 1.2.0
NuGet\Install-Package KoLite -Version 1.2.0
<PackageReference Include="KoLite" Version="1.2.0" />
paket add KoLite --version 1.2.0
#r "nuget: KoLite, 1.2.0"
// Install KoLite as a Cake Addin #addin nuget:?package=KoLite&version=1.2.0 // Install KoLite as a Cake Tool #tool nuget:?package=KoLite&version=1.2.0
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
Learn more about Target Frameworks and .NET Standard.
-
- jQuery (>= 1.4.4)
- knockoutjs (>= 2.0.0)
GitHub repositories
This package is not used by any popular GitHub repositories.
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.