Closed elroy910 closed 11 years ago
Thanks for pushing this will merge in later after some testing. Can you give me an example of how you use it in the HTML.
HTML:
JS:
this.repairlines = function () { var repairlinesName = []; map = {}; var data = repairlinesRaw(); $.each(data, function (i, repairline) { map[repairline.Description()] = repairline; repairlinesName.push(repairline.Description()); }); return repairlinesName; };
this.updateViewAfterSelection = function (item) {
//map can be found in waardes
var selectedCode = map[item].Costs;
alert(selectedCode);
return item;
};
Date: Thu, 25 Apr 2013 08:04:13 -0700 From: notifications@github.com To: knockout-bootstrap@noreply.github.com CC: Subject: Re: [knockout-bootstrap] Adjusted the Typeahead functionality (#6)
Thanks for pushing this will merge in later after some testing. Can you give me an example of how you use it in the HTML.
— Reply to this email directly or view it on GitHub.
Check Stack overflow for a better view of code use: http://stackoverflow.com/questions/16195200/creating-a-autocomplete-field-with-typeahead-in-the-durandal-framework/16355062#16355062
It is now possible to also give a minLength, items and update function to the typeahead data-bind
Use it in yout HTML as