Questions tagged as 'knockoutjs'

1
answer

Test ViewModel KnockOut with CucumberJs

I have the feature definition as follows: Feature: Shoper can add an item to ShoppingCart Scenario: First item added to ShoppingCart Given I have an Empty ShoppingCart When I add an Item to ShoppingCart Then The ShoppingCart mus...
asked by 02.07.2014 / 04:29
1
answer

How to set 'href' on a link in KnockoutJS?

I'm starting with KnockoutJS and would like to know if it has a way to attach a link received by AJAX / JSON to a <a href="meu link aqui">Meu link</a> tag. HTML: <div data-bind="text: url"></div> <hr/>...
asked by 15.07.2014 / 16:12
2
answers

MooTools request: onSuccess does not fire

I'm using KnockoutJS in conjunction with MooTools, but I'm having trouble with Request . <div class="form-group"> <select data-bind="options: classificacoes, optionsText: ds_classificacao, optionsValue: id"></select>...
asked by 15.09.2014 / 15:39
1
answer

Problem with select in KnockoutJS and MooTools

I'm having a problem with a simple test with KnockoutJS in conjunction with MooTools: <div> <select data-bind="foreach: animais"> <option data-bind="text: nome, value: id"></option> </select> </...
asked by 14.09.2014 / 23:46
1
answer

Sending post to ActionResult via knockout

Personal speech, following: I'm trying to send post using ko , to a ActionResult method of my controller instead of a JsonResult as usual. When debugging the project it goes into ActionResult but does not open...
asked by 24.09.2015 / 00:38
0
answers

Knockoutjs Div changes update tag to

I have this Div with knockoutjs when it changes I have to change my tag to hide or visible <div style="text-align:center; margin-top:5px; width:150px; float:left;">${Name()}</div> <a data-bind="visible:CheckedPlus" onclick="att...
asked by 29.06.2017 / 14:13
0
answers

How to reference Library Knockout.js installed via NPM

I installed the Knockout.js library via NPM, with the following command: npm install --save-dev knockout I noticed that NPM installs the module inside the node_modules / knockout folder, but I believe there is a way to include the script in...
asked by 04.03.2017 / 21:02
1
answer

Using only knockoutJs and jQuery can replace the last?

Good morning guys, Firstly, I worked on a very large project using durandal, this project was cutting edge web technology, durandaljs, gulp, entity framework 6 mvc 5 webapi2 and etc. Now the opportunity has come to make a resemblance only tha...
asked by 20.10.2016 / 00:52
1
answer

Create a treeview that accepts an observable array as input

Hello, I need to create a treeview that accepts an observable as input so that as I remove / add a node in the tree it updates itself. I've been researching and many people use the biding template to do this however, I'm still kind of confuse...
asked by 20.04.2016 / 14:12
1
answer

Create columns with the foreach of knockoutJS

Good afternoon, I wanted to 'break' a list of items in 3 columns of 4 items in a foreach of knockoutJS. That is, at this point the list is populated down and I would like it to be broken via jQuery or javascript because CSS is not supported i...
asked by 22.03.2016 / 18:42