Can anyone explain how to use this
function onBlur(handler: EventHandler): Element
callback EventHandler(event: Event, $w: Function): void
Can anyone explain how to use this
function onBlur(handler: EventHandler): Element
callback EventHandler(event: Event, $w: Function): void
Let’s say you have a dropdown on your page and someone selects that and chooses something in it. When they click somewhere else on your page the focus get moved from the dropdown to the other element they clicked. This means that your dropdown triggers an onBlur…
$w("#dropdown1").onBlur( (event, $w) => {
console.log("My dropdown is no longer in focus");
});
Hope it helps.