KoLite 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();

There is a newer version of this package available.
See the version list below for details.
Install-Package KoLite -Version 1.0.1
dotnet add package KoLite --version 1.0.1
<PackageReference Include="KoLite" Version="1.0.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add KoLite --version 1.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
1.2.0 100,397 8/28/2014
1.1.0 81,675 12/21/2012
1.0.4 7,875 9/30/2012
1.0.3 1,738 8/13/2012
1.0.2 519 8/13/2012
1.0.1 559 8/13/2012
1.0.0 492 8/13/2012
Show less