var match = ko.utils.arrayFirst(self.Prop_GridControl.Prop_SelectedItems(), function (item) {
return "ESPE0001" != item.IdEstado;
});
return match === undefined || match === null;
In the code:
self.Trigger_SeleccionGrilla = ko.observable();
self.Comp_PuedeEliminar = ko.computed(function () {
self.Trigger_SeleccionGrilla();
var hasSelection = self.Prop_GridControl.Prop_SelectedItems().length > 0;
if (hasSelection) {
var match = ko.utils.arrayFirst(self.Prop_GridControl.Prop_SelectedItems(), function (item) {
return "ESPE0001" != item.IdEstado;
});
return match === undefined || match === null;
} else {
return false;
}
}, self);
Member
177 Points
629 Posts
Meaning of arrayFirst
Jan 15, 2018 04:08 AM|neoaguil17|LINK
Hi
I dont know the interpretation of:
In the code: