knockout-2.0 Questions

1

Solved

This seems to be a common approach to sanitizing/validating/formatting data with knockout when binding to an input field, it creates a reusable custom binding that uses a computed observable. It ba...
Bracelet asked 28/9, 2012 at 16:2

2

Solved

When using: var dataToSave = ko.toJSON(myViewModel); .. is it possible to not serialize values that are null? Serializing my current viewModel creates around 500Kb of JSON most of which is ends...
Sapheaded asked 17/9, 2012 at 14:7

3

Solved

I have static image 500x640 sitting in folder catted by 20x20 pieces with css sprites, I am setting background-position to display each piece, I need such kind of display to be able to manipulate w...
Sepaloid asked 28/8, 2012 at 17:32

1

Solved

Lets say I would like to create a function that loops all the elements in an array (observableArray) and return the appropriate item from the array. I was thinking of creating a computed function ...
Tumid asked 19/8, 2012 at 11:59

1

Solved

When using knockout, what is the advantage of using read-only computed observables rather than simple functions? Take the following viewmodel constructor and html snippet, for example: ​ var View...
Ewens asked 17/7, 2012 at 17:31

2

Solved

I have an element that possesses an attribute whose value is bound to a knockout observable: <text transform='matrix(1 0 0 1 1 1)' data-bind='attr:{transform:textTransform}'></text> W...
Prudi asked 17/7, 2012 at 15:49

2

Solved

I'd like to implement what this plugin does using jQuery: https://github.com/rmm5t/jquery-timeago A short description of that plugin: This will turn all abbr elements with a class of timeago and ...
Sizing asked 29/6, 2012 at 21:9

1

Solved

I am trying to create a hidden form field from a boolean value in my viewModel. <tbody data-bind="foreach: MediaFiles"> <tr> <td> <input type="hidden" data-bind="attr: {...
Platyhelminth asked 3/7, 2012 at 3:18

2

Solved

I have some checkboxes bound to an array in my model. This works great, when you check a box the array is updated accordingly. However when the value has changed i wish to call a method on my mod...
Jepson asked 24/6, 2012 at 12:50

1

Solved

I just can't get knockout to bind to the right mousebutton click with the event binding. Mouseover etc. are working fine. Any suggestions? Thanks Andreas
Clearcut asked 21/6, 2012 at 11:43

1

Solved

How to create a url using knockout js native templating. <a href="http://" title="Visit site"> <span data-bind="text: site"></span> </a> say the expression <span dat...
Clever asked 5/6, 2012 at 16:20

1

Solved

I'm using JQuery DataTables for all my tables because of all the nice built-in features, but it seems the only way to customize the table layout is to set the "sDom" option attribute for the DataTa...
Glycolysis asked 31/5, 2012 at 1:47

2

Solved

I have a small app filtering a list of items by providing several choices for different attributes in combobox (select) elements. Everything works fine selecting and deselecting single combobox el...
Bondie asked 28/4, 2012 at 22:12

1

Solved

I am trying to create view Models using KnockOut mapping plugin , This is the object , Basically below is a sentence with words in it. var data = { name: 'Example Title', sentences: [ {id: 1, ...
Rezzani asked 5/3, 2012 at 22:49

© 2022 - 2024 — McMap. All rights reserved.