Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

knockout arraychange - possible status

Tags:

knockout.js

Listening to an observable array for changes ie

coll.subscribe(function(changes) {}, null, "arrayChange")

Does anyone know what the possible status values could be?

I have seen "added" & "deleted" Are there any others? Is there a reference somewhere? Many thanks

like image 318
Chin Avatar asked Jan 22 '26 05:01

Chin


1 Answers

Currently only "added" and "deleted" are the possible status values.

However this is not described expicility in the documentation, but you get this info:

  • From the Knockout 3.0 RC announcement
  • From reading the specs for the feature
  • Or reading the actual source code of the observableArray.changeTracking
like image 82
nemesv Avatar answered Jan 24 '26 14:01

nemesv



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!