/
ScrollToOptions.cljs
72 lines (47 loc) · 1.4 KB
/
ScrollToOptions.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
(ns web.cssdom.ScrollToOptions
"The ScrollToOptions dictionary of the CSSOM View spec contains
specifying where an element should be scrolled to, and whether
scrolling should be smooth."
(:refer-clojure :exclude []))
(defn top
"Property.
A double.
`top: double`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/ScrollToOptions/top`"
[this]
(-> this (.top)))
(defn set-top!
"Property.
A double.
`top: double`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/ScrollToOptions/top`"
[this val]
(aset this "top" val))
(defn behavior
"Property.
An enum, the value of which can be one of the following:
`behavior: ScrollBehavior`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/ScrollToOptions/behavior`"
[this]
(-> this (.behavior)))
(defn set-behavior!
"Property.
An enum, the value of which can be one of the following:
`behavior: ScrollBehavior`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/ScrollToOptions/behavior`"
[this val]
(aset this "behavior" val))
(defn left
"Property.
A double.
`left: double`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/ScrollToOptions/left`"
[this]
(-> this (.left)))
(defn set-left!
"Property.
A double.
`left: double`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/ScrollToOptions/left`"
[this val]
(aset this "left" val))