I was wondering in the following example how I can access the relevant AttributeType
property of $parent.contactFields
?
as $data looks up fieldCouplings
not $parent.contactFields
<ul data-bind="foreach: fieldsCouplings">
<li>
<h5 data-bind="text: DisplayName"></h5>
<label>Contact field: <select data-bind="options: $parent.contactFields, optionsText: $data.AttributeType"></select></label>
</li>
</ul>
I don't seem to be able to find any suitable Binding context in the docs too.
I want to see optionsText to be 0, 1 and 2
Here is an example fiddle: http://jsfiddle.net/makeitmorehuman/86PqH/3/