1
와 OptionText에서 multilpe 텍스트를 표시합니다 :어떻게이 코드가 Knockout.js
<select name="test" id="test" class=""
data-bind="
options: myArray,
value: idSelected,
optionsText: 'name',
optionsValue: 'id',
optionsCaption: 'All'>
</select>
결과 :
text 1
text 2
text 3
...
내가 가진 ID와 이름 CONCAT합니다 '-'.
1 - Text 1
2 - text 2
3 - text 3
...