KoLite 1.0.2

There is a newer version of this package available.
See the version list below for details.
dotnet add package KoLite --version 1.0.2
                    
NuGet\Install-Package KoLite -Version 1.0.2
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="KoLite" Version="1.0.2" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="KoLite" Version="1.0.2" />
                    
Directory.Packages.props
<PackageReference Include="KoLite" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add KoLite --version 1.0.2
                    
#r "nuget: KoLite, 1.0.2"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package KoLite@1.0.2
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=KoLite&version=1.0.2
                    
Install as a Cake Addin
#tool nuget:?package=KoLite&version=1.0.2
                    
Install as a Cake Tool

// asyncCommand
// -----------------------------

<button data-bind="command:
saveCommand">Save</button>



self.saveCommand = ko.asyncCommand({
   execute: function(callback) {
       $.ajax({
           complete: callback,
           data: { name: self.name() },
           type: 'POST',
           url: '/save/',
                   
           success: function(result) {
               alert('Name saved:' + result)
           }
       })
   },
       
   canExecute: function(isExecuting) {
       return !isExecuting && self.name()
   }
})


// asyncCommand and activity
// -----------------------------


<button data-bind="activity: saveCommand.isExecuting, command: saveCommand">Save</button>



// 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 ...


//Property on your view model. myPerson is an instance of Person.
//Did it Change?
isDirty = ko.computed(function () {
   return myPerson().dirtyFlag().isDirty();
}),

//Resync Changes
dirtyFlag().reset();

There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

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.

Version Downloads Last Updated
1.2.0 405,571 8/28/2014
1.1.0 216,724 12/21/2012
1.0.4 34,837 9/30/2012
1.0.3 5,237 8/13/2012
1.0.2 3,575 8/13/2012
1.0.1 3,617 8/13/2012
1.0.0 3,780 8/13/2012