Fired when eventName fires on target.
eventName
target
Rather than whole event args being emitted on the stream, it plucks a field from the event args, or if that's missing, from the target.
// Emits the the value of a field named 'x'// on the change event argseventField(el, `pointermove`, `x`); Copy
// Emits the the value of a field named 'x'// on the change event argseventField(el, `pointermove`, `x`);
Event target, HTML element or HTML query (eg '#someId')
Name of event, eg. 'pointermove'
Name of field, eg 'x'
Initial data
Options for source
Fired when
eventName
fires ontarget
.Rather than whole event args being emitted on the stream, it plucks a field from the event args, or if that's missing, from the target.