KoLite 1.0.1
See the version list below for details.
dotnet add package KoLite --version 1.0.1
NuGet\Install-Package KoLite -Version 1.0.1
<PackageReference Include="KoLite" Version="1.0.1" />
paket add KoLite --version 1.0.1
#r "nuget: KoLite, 1.0.1"
// Install KoLite as a Cake Addin #addin nuget:?package=KoLite&version=1.0.1 // Install KoLite as a Cake Tool #tool nuget:?package=KoLite&version=1.0.1
Features include:
1) dirtyFlag (for change tracking)
2) activity indicator (ideal for commands)
3) command (with execute, canExecute, and activity features)
### asyncCommand
<button data-bind="command: loadCmd">Save</button>
saveCmd = ko.asyncCommand({
execute: function(complete) { ... }
})
### asyncCommand and Activity
<button data-bind="activity: saveCmd.isExecuting, command: saveCmd">Save</button>
saveCmd = ko.asyncCommand({
execute: function(complete) { ... },
canExecute: function(isExecuting) {
return !isExecuting && self.isDirty()
}
})
### dirtyFlag
// Your model
var Person = function () {
var self = this;
self.id = ko.observable();
self.firstName = ko.observable().extend({ required: true });
self.lastName = ko.observable().extend({ required: true });
self.dirtyFlag = new ko.DirtyFlag([self.firstName,self.lastName]);
return self;
};
Hook these into your viewmodel ...
//Did It Change?
viewModel.dirtyFlag().isDirty();
//Resync Changes
viewModel.dirtyFlag().reset();
Learn more about Target Frameworks and .NET Standard.
-
- jQuery (>= 1.4.4)
- knockoutjs (>= 2.0.0)
NuGet packages (3)
Showing the top 3 NuGet packages that depend on KoLite:
Package | Downloads |
---|---|
JsSite
This is a set of simplest javascript modules that can help to you organize your framework on ASP.NET (MVC). This is just for a begin your js-framework. For example: control DataSource - is loader that can data from web api with pager and it cat make selection. |
|
Calabonga.Owin.Application.Spa
Single Page Application template for create a solution from scratch |
|
DragonwolfRazorHelper
Dragonwolf's Razors' Helpers For MVC |
GitHub repositories
This package is not used by any popular GitHub repositories.