我在KO中的每个循环都有下降,当我更改任何一个Drop down中的值时,其他下拉列表不应该有所选的值。
我用$data
来获取值,如何使用subscribe和
<div class="row" data-bind = "foreach: { data: $data, as: 'columnValues' }">
<div class="col" >
<select id ="SELECT" data-bind="options: getColumnValues($root.AttributeSpecifications,columnValues), optionsText: 'AttributeName', optionsCaption: 'Select Attribute...', optionsValue: columnValues, value: Attribute"></select>
<div data-bind="visible: Attribute() != null" class="option">
<div>
<span>with any of the following values:</span>
</div>
<div class="option">
<a class="queryType link" href="#" data-bind="click: function (data, event) { columnValues.QueryType(0) }">List</a> | <a class="queryType link" href="#" data-bind=" click: function (data, event) { $data.QueryType(1) }">Range</a>
</div>
<div data-bind="template: { name: function () { return templateName(Attribute, QueryType) } }"></div>
</div>
</div>
</div>