Creates an observable sequence by adding an event listener to the matching DOMElement or DOMNodeList for the mouseleave
event.
element
(Any
): The DOMElement, DOMNodeList to attach a listener.[selector]
(Function
): A selector which takes the arguments from the event handler to produce a single item to yield on next.[useCapture]
(Boolean
): Iftrue
,useCapture
indicates that the user wishes to initiate capture. After initiating capture, all events of the specified type will be dispatched to the registered listener before being dispatched to anyEventTarget
beneath it in the DOM tree. Events which are bubbling upward through the tree will not trigger a listener designated to use capture.
(Observable
): An observable sequence of events from the specified element and the mouseleave
event.
var input = document.getElementById('input');
var source = Rx.DOM.mouseleave(input);
var subscription = source.subscribe(
function (x) {
console.log('Next!');
},
function (err) {
console.log('Error: ' + err);
},
function () {
console.log('Completed');
});
File:
Dist:
Prerequisites:
- If using
rx.js
rx.lite.js
|rx.lite.compat.js
NPM Packages:
NuGet Packages:
Unit Tests: