<tbody data-bind="foreach: DailyItemList"> <tr> <td data-bind="text:Day"></td> <td><input id="Text2" data-bind="value: Required"/></td> <td><input id="Text3" data-bind="value: Setup"/></td> <td><input id="Text4" data-bind="value: Close"/></td> <%-- <td><select id="combobox" data-bind="options:$parent.Vehicles, value:OwnerVehicle, optionsText: 'Name', optionsValue: 'ID' "> </select></td>--%> <td> <table> <tbody data-bind="foreach: Items"> <tr> <td><input id="Text5" data-bind="value: Location"/></td> <td><input id="Text6" data-bind="value: Role"/></td> <td><input id="Button2" type="button" value="X" data-bind="click: function() { $parent.Delete($data); }" /></td> <td><input id="Button1" type="button" value="+" data-bind="click: Add" /></td> </tr> </tbody> </table> </td> </tr> </tbody>
--
You received this message because you are subscribed to the Google Groups "KnockoutJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email to knockoutjs+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
<div data-bind=
"visible: myValues().length > 0"
>
Thanks, it worked nicely :)
<tbody data-bind="foreach: WorkSegments"> <tr> <td class="formFields"> <!-- ko if: $index() == 0 --> <button id="btnAdd5" value="Add" style="width:30px" data-bind="click: function() { $parent.Add(); }"> +</button> <!--/ko--> <!-- ko if: $index() > 0 --> <button id="btnDelete5" value="Add" style="width:30px" data-bind="click: function() { $parent.Delete($data); }"> x</button> <!--/ko--> </td> </tr> </tbody>