Top "Knockout-2.0" questions

Knockout.

make an input only-numeric type on knockout

i read many tutorials but i dont know how to do this, this is the input input(type="text",name="…

javascript knockout.js knockout-2.0
Knockout.js "if Binding" on multiple booleans

Is it possible to use Knockout's if binding on more than one boolean? Such as <div data-bind="if: (property.…

knockout.js knockout-2.0
knockoutjs get element id through click event

I'm using knockoutjs and I currently have something in my view that looks like this: <img id="myTab1" data-bind="…

jquery knockout.js knockout-2.0
knockout - HTML href

I have a foreach loop that goes through an array (filesObservableArray). The array has a key/value with the key: …

knockout.js hyperlink anchor knockout-2.0
knockout unable to process binding "foreach"

I'm new to Knockout and I'm building an app that's effectively a large-scale calculator. So far I have two instances …

javascript jquery knockout.js knockout-2.0
$index+1 in Knockout foreach binding

I need to display $index+1 in a table. If I just use the $index all the elements will start from 0, …

knockout.js knockout-2.0
Knockout: computed observable vs function

When using knockout, what is the advantage of using read-only computed observables rather than simple functions? Take the following viewmodel …

knockout.js knockout-2.0 computed-observable
Get dynamically inserted HTML to work with knockoutjs

I'm using JQuery DataTables for all my tables because of all the nice built-in features, but it seems the only …

javascript jquery html knockout.js knockout-2.0
Knockout serialization with ko.toJSON - how to ignore properties that are null

When using: var dataToSave = ko.toJSON(myViewModel); .. is it possible to not serialize values that are null? Serializing my current …

json serialization knockout.js knockout-2.0
Formatting Date in Knockout Template

I'm wanting to format a date in knockout's template. The date is currently being returned as 2013-07-04T00:00:00 I …

javascript knockout.js knockout-2.0