Questions tagged [knockout.js]
Knockout.js is an open source JavaScript library for dynamic HTML UIs using the Model-View-View Model (MVVM) pattern.
knockout.js
20,501
questions
0
votes
2
answers
96
views
Is toString() JavaScript output "guaranteed" to be the same in every browser/implementation?
I'm using a specific framework and somewhere in my code I have a function as a parameter.
I want to check if that function is a specific anonymous function out of that framework. I don't have access ...
0
votes
0
answers
26
views
How does the knockout rendering for imagepicker work in SurveyJS Survey Creator
Can someone help me understand how imagepicker is rendered in knockout SurveyJS Survey Creator?
I am not sure where or how the binding to the elements in the html template occurs or how the html ...
0
votes
1
answer
41
views
Knockout.js - Subscription to observable selected value in cascading select list firing twice
I have two templates for cascading select lists implemented with Knockout.Js, named office and department. Each of the lists has a subscription to the selected Value. There are two ways the list and ...
6
votes
2
answers
2k
views
Malware in Knockoutjs context debugger
Has anyone else seen this:
Is there another extension for KnockoutJs?
0
votes
1
answer
276
views
Magento 2 Minicart / Knockout.js: Format calculated price / sum
In Magento 2 minicart (CE 2.4.6) I do not only want to show the price of each item in cart, but also the SUM of each item (if there is more than one unit of the same item in cart). I have therefore ...
0
votes
0
answers
225
views
Magento 2: How to open a modal for each related product using UI component?
I need to save product IDs(will be used ono the frontend later) into the extension attribute of the related product.
Idea is that modal with products listing should appear when I click the 'Select ...
0
votes
1
answer
34
views
knockout save reordering with jQuery SortableJS when drag/drop rearrange list in
I have a knockout application, where I have a list of divs for a knockoutobservablearray.
After I move an item to a new position. How do I update the knockoutobservablearray to reflect the changed ...
0
votes
0
answers
32
views
Knockout JS blur event binding occurs 2 times
I have this simple input
<div class="input-group" data-bind="attr:{id: 'date-rec-datepicker-calendar-' + invoiceId()}, liveEditor: value">
<input class="edit form-...
0
votes
0
answers
34
views
Can't stop multiple page (html) from overlapping divs using @media print css
I've got a two-column, multi-page, data fed, phone directory. The screen layout works fine and the printing did until a recent update to DNN. I can't blame DNN because it might be browser related, but ...
0
votes
0
answers
16
views
How can I do a Unit Testing in KnockoutJS with QUnit
I have this ViewModel (short) with KnockoutJS and I need to make a Unit Test using QUnit but I have this error message when i running my test.
ViewModel:
var modeloContratacion;//NOSONAR
define(['...
0
votes
0
answers
91
views
Weird onchange event in Chrome with autofill fields and Stripe embed
We have a weird issue happening in Chrome autofill where if I autofill the forms in the video link it causes an onchange event on my Type dropdown that is using knockout.js and sends an undefined ...
0
votes
1
answer
33
views
Using the last image in an array
Sorry if wrong format or dumb question, I'm new to this. I use knockout js and normally use it to find a image with an index and display it, however, I'm wondering if it is possible to ensure it is ...
0
votes
1
answer
56
views
Check string in Knockout JS and then split string values
I have the following data binding:
$row().current_tracking
Sometimes $row().current_tracking has a value of, for example:
372424561624
And sometimes $row().current_tracking have a value with two ...
0
votes
0
answers
76
views
Knockout extenders
I have the following extender below and I am trying to use it in typescript and I'm getting the error listed.
I have searched through so alot of documentation and this seems to be the way it should be ...
0
votes
0
answers
70
views
Knockout with Monaco - Close Modal Not Updating
I have a page that has a monaco editor textbox. I have an Edit button that, on clicked, opens a modal window with a new monaco textbox (it gets initialized with the value from the model bound to first ...