If you are looking for a data-linked element, such as an input: <input data-link="..." />
, whose change event triggered the change, you can get that from either this.linkCtx.elem
or ev.target
.
More generally, the this
pointer is the view
object that is being changed.
There are a number of helper methods on the view object that you can use to access different elements within that view. For example this.contents("someSelector")
will return a jQuery object that selects top-level elements in that view, and this.contents(true, "someSelector")
will apply the selector to filter on all elements in the view (deep search not just top-level).
(You can use the selector "*"
to get all elements)