I stumbled upon this source for creating validations.
However, I am struggling to grasp the concept of implementing the extend method in my code.
I populate my observable with data received from a Breeze query.
The loading process looks like this:
dataObsArray = ko.observableArray()
datacontext.getData(id, dataObsArray)
.then(function () {
// some logic
})
.fail("Data not found");
Subsequently, I connect this observable array to my view in the following way:
<tbody data-bind="with: dataObsArraay">
<tr>
<td>name</td>
<td> <input data-bind=" value: Name" ></td>
<td> <input data-bind=" value: Age" ></td>
</tr>
</tbody>
Given this setup, I am confused about the implementation of the extend method since I am simply binding my view to the properties in the observable array.
I would greatly appreciate any guidance on this matter.