All Questions
Tagged with knockout.js observable
233
questions
0
votes
1
answer
140
views
Access Symbol(_latestValue) of an Observable Array
I want to get the value from a observable array myViewModel[index]["Symbol(_latestValue)"]
With "...myViewModel[index]..." I've access of the object. (picture)
I need the value ...
0
votes
1
answer
271
views
Trigger change event when key pressed in knockout
I am trying to trigger change event when key is pressed. I subscribed to the observable as shown below but it only detect change after focus is changed.
Edit: for an option binding:
<input class=&...
0
votes
1
answer
31
views
Issue with One Way Binding Using Knockoutjs
I'm currently using Knockoutjs in one of my projects. I'm trying to do one-way binding in my HTML to a span tag but I'm not having any luck. I'm getting my data from an ajax call and I can see my ...
0
votes
1
answer
34
views
knockout.js sorted and ratelimit not working together well, infinite loop
For some reason my sorted method here in conjunction with ratelimit is causing an endless loop. I am not sure why it won't stop being hit. If I remove the ratelimit or the sorted there is no endless ...
0
votes
1
answer
56
views
Knock out Observable binding issue on HTML
I have created two observables variables on Knock Out as follow:
self.winImage1= ko.observable();
self.winImage2= ko.observable();
And validated and stored platform based CSS for the observable ...
0
votes
1
answer
32
views
Knockout js visible binding not working for secondary variable, depending on which drop down is selected should show message. First instance works
I have a form which has 2 dropdowns questions.
Depending what the user answers, depends what will happen.
So for example
Are you human? The person answers yes and then another question show asking if ...
0
votes
1
answer
43
views
How to get value which is used for div visible condition in c# selenium
<div data-bind="css: resultClass, visible: model.ticketId() !== ''" id="result">
-------------
</div>
One of my html form page has div visible based on condition like ...
2
votes
0
answers
339
views
Required Field Validation error not displaying for fields added into Array
I am trying to add the fields in the form through Observable Array in the KnockoutJS to repeat the same section of fields. But the issue is the Required Field Validation errors are not displaying for ...
0
votes
1
answer
418
views
Data-bind return html a href with data-bind
i have a problem with data-bind into a return observable,
My html code :
<form data-bind="submit: capitalizeNames">
<p><label>Prénom : <input data-bind="...
0
votes
1
answer
107
views
Knockout JS writable computed value doesn't fire another computed value when writing function is used
I use Knockout Js for a few months. But I stuck on a problem. I have 2 view models. One is the whole bill view model who has the subtotal of the bill and the taxes with the grand total. A part of the ...
1
vote
1
answer
101
views
Validation on the hidden fields on knockoutJS
I am trying perform validation on the fields entered on the KnockoutJS, the issue is validation in the hidden fields. The page is like this
When the Has Customer Account Number? field is selected I ...
0
votes
1
answer
1k
views
Knockout observable is not accessible inside function
So I am working with Knockout inside Magento 2.3.4, and I am setting a custom observable value on initialize, and then I am trying to access that observable and change the value inside a function. ...
0
votes
1
answer
169
views
Angular : binding and staying in sync with an array
I have a service with holds a list of items. I want an angular component to display the items and stay in sync when the items change.
The list is large and I'd like the updates to be done based on ...
0
votes
1
answer
134
views
How to track state change for multiple checkboxes in ko.js
Here is the fiddle:https: https://jsfiddle.net/t5v7fmoq/1/
What I want to achieve:
I want to be able to update checkbox view automatically depending on the recieved state variable (which can have true ...
0
votes
1
answer
966
views
How to subscribe to variable state change using knockout.js
Here is a basic knockout.js fiddle of what I want to achieve: https://jsfiddle.net/sr3wy17t/
It does what I want to do, but not exactly in a way I want.
For completeness I will repeat parts of the ...