Questions tagged [knockout-extensions]

a set of extensions and bindings for the Javascript library KnockoutJs

Knockout extensions are a number of useful extensions and databindings for the Knockout JS javascript library.

5 questions
20
votes
2 answers

How to remove extender from an existing observable?

I am using the Knockout Validation plugin and setting an observable as required using the extender: myObservable.extend({required:true}); Is it possible for me to remove the extender after adding it?
Jonas Stawski
  • 6,682
  • 6
  • 61
  • 106
7
votes
2 answers

Check if extension was applied to observable

I want to unit test my function which basically builds an array of observables from an array of parameters (TypeScript code): private BuildObservables(parameters: Parameter[]) { var observables = {}; for (var parameterName in…
Lukasz Lysik
  • 10,462
  • 3
  • 51
  • 72
1
vote
1 answer

Using Knockout custom binding utilizing input mask disables Knockout Validation

I'd like to use both Knockout Validation and Knockout custom bindings with input masks (http://robinherbots.github.io/jquery.inputmask/). Example: money input box, I don't want the user to be able to enter any alphabetic characters at all in the…
1
vote
2 answers

Knockout Extension Issue - Better Solution?

I'm new to knockout, and still learning how best to work with it. I have a few input fields in an app which are tied to a bunch of calculations that update in real time. The fields on their own work great, and all is fine... EXCEPT, I need to…
1
vote
2 answers

Durandal knockout jchartfx

I am trying to integrate this component jchartfx with Durandel. I have a standalone prototype using knockout without Durandel and it works perfectly, so I am convinced the issue is Durandel related. Here is my viewmodel code: define(function…