-
Notifications
You must be signed in to change notification settings - Fork 0
/
FocusEvent.cljs
39 lines (27 loc) · 1.33 KB
/
FocusEvent.cljs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
(ns web.event.FocusEvent
"The FocusEvent interface represents focus-related events, including
blur, focusin, and focusout."
(:refer-clojure :exclude []))
(def constructor
"Constructor.
The FocusEvent() constructor returns a newly created `web.event.FocusEvent` object with an optional `web.EventTarget`. When the event has both a source and a destination, the relatedTarget value must be set to the other target.
See also: `https://developer.mozilla.org/en-US/docs/Web/API/FocusEvent/FocusEvent`"
js/FocusEvent)
(defn related-target
"Property.
The FocusEvent.relatedTarget read-only property is the secondary
depending on the type of event. In some cases, like when tabbing
or out of a page, this property may be set to null for security
`secondTarget = focusEvent.relatedTarget`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/FocusEvent/relatedTarget`"
[this]
(-> this (.-relatedTarget)))
(defn set-related-target!
"Property.
The FocusEvent.relatedTarget read-only property is the secondary
depending on the type of event. In some cases, like when tabbing
or out of a page, this property may be set to null for security
`secondTarget = focusEvent.relatedTarget`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/FocusEvent/relatedTarget`"
[this val]
(aset this "relatedTarget" val))