Knockout is a JavaScript library for dynamic HTML UIs using the Model-View-View Model (MVVM) pattern.
0
votes
0answers
3 views
How to intercept write using knockout mapping library
Using knockout and knockout mapping, how can I intercept a write of a property?
What I've tried:
var data = { someBool: false, someOther: 'test value' };
var vm = ko.mapping.fromJS(data);
...
0
votes
0answers
15 views
Circular dependency in Knockout
I have a big problem here.
I have a computed variable that gets updated after a change in an observable array.
The problem is that after the computed variable is evaluated, I need to change the ...
0
votes
1answer
6 views
Knockoutjs and JQuery datepicker. Element looses datepicker after re-render
When i'm trying to use input with id "eventStartDate", after it was hidden, and made visible again - it looses datepicker:
<!-- ko 'if': isEvent.forEditing -->
<div ...
0
votes
0answers
10 views
Custom Knockoutjs binding for Twitter Bootstrap popover using template for html content
I'm using Twitter Bootstrap popovers. The popover requires that you set an attribute data-content for the popover's content (yes, you have to include data-html: true). I'm using Knockoutjs foreach: ...
0
votes
1answer
7 views
Knockout Checked Binding Doesnt Work With Radio Button
The knockout checked binding is not working, has followed below example given by knockout.
http://knockoutjs.com/documentation/checked-binding.html
The code can be seen at following.
...
1
vote
1answer
19 views
KnockoutJS 'checked' binding not applied in customBinding?
I have a checkbox being controller by a Knockout observable, but in a custom binding, the element is not checked.
<input type="checkbox" data-bind="checked: isChecked, highlightIfChecked: ...
0
votes
0answers
31 views
JavaScript define not working [require.js]
my require:
define(['services/datacontext',
'services/helper'
], function ( datacontext, helper) {
...
My function:
function contentTypeInitializer(contentType) {
...
0
votes
2answers
24 views
sorting showing unexpected results
I am sorting a grid with knockout.js. Following is my sort function
this.sortByName = function() {
var event = arguments[1];
var targeElement = event.originalTarget;
// console.info(targeElement);
...
0
votes
0answers
26 views
Twitter bootstrap datepicker issue in conditional knockout statement
I have application where i need to display datepicker in conditional statement. I am using hot towel with durandal and knockout. Conditional statement parent is bound with knockout as shown below.
...
0
votes
0answers
39 views
Binding list on slider using knockout.js [duplicate]
I do have a lists which must be increased or Decreased depending on the value of the Slider.
I want to get it done by Knockout.js
I have written some code to show the List and Slider as follows:
...
0
votes
3answers
39 views
Knockout With Binding Issue
I am having trouble with knockouts "With" binding. I can bind. I can bind a nested object no problem but not a nested model. am I doing it all wrong or is this out of the scope of the "with" binding.
...
-2
votes
0answers
23 views
Which MVC Javascript library integrates easily with JqueryMobile? [closed]
I am writing an app that is similar to a mail client - i.e. messages come in via json, and they can be marked as viewed and deleted.
I am looking to use knockout, and would like to know if there are ...
0
votes
1answer
14 views
how to I set a custom validation message on a single field?
how would i set about validating a single field with a message " the selected title is required" instead of the default "the field is required"
var selectedTitle = ko.observable().extend({ ...
0
votes
1answer
25 views
see all extenders and custom bindings for observable
Is it possible to see all extenders and bindings attached to an observable within Knockout JS?
Sample View Model:
var viewModel = function(){
var self = this;
self.firstName = ...
0
votes
0answers
9 views
Use rowTemplate from CogShift (Knockout extension) to bind a datatable
I'm trying to use CogShift, an extension of Knockout to work with datatable.
I found an example in a related Stack Overflow question, which perform exactly what I need, however it has a bug (in my ...