-
Notifications
You must be signed in to change notification settings - Fork 0
/
HTMLOListElement.cljs
92 lines (75 loc) · 2.66 KB
/
HTMLOListElement.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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
(ns web.dom.HTMLOListElement
"The HTMLOListElement interface provides special properties (beyond
defined on the regular `web.dom.HTMLElement` interface it also
available to it by inheritance) for manipulating ordered list"
(:refer-clojure :exclude [type]))
(defn reversed
"Property.
Is a Boolean value reflecting the reversed and defining if the
is descending, that is its value is true, or ascending (false)."
[this]
(-> this (.-reversed)))
(defn set-reversed!
"Property.
Is a Boolean value reflecting the reversed and defining if the
is descending, that is its value is true, or ascending (false)."
[this val]
(aset this "reversed" val))
(defn start
"Property.
Is a long value reflecting the start and defining the value of
first number of the first element of the list."
[this]
(-> this (.-start)))
(defn set-start!
"Property.
Is a long value reflecting the start and defining the value of
first number of the first element of the list."
[this val]
(aset this "start" val))
(defn type
"Property.
Is a DOMString value reflecting the type and defining the kind
marker to be used to display. It can have the following values:
'1' meaning that decimal numbers are used: 1, 2, 3, 4, 5, …
'a' meaning that the lowercase latin alphabet is used: a, b,
d, e, …
'A' meaning that the uppercase latin alphabet is used: A, B,
D, E, …
'i' meaning that the lowercase latin numerals are used: i, ii,
iv, v, …
'I' meaning that the uppercase latin numerals are used: I, II,
IV, V, …"
[this]
(-> this (.-type)))
(defn set-type!
"Property.
Is a DOMString value reflecting the type and defining the kind
marker to be used to display. It can have the following values:
'1' meaning that decimal numbers are used: 1, 2, 3, 4, 5, …
'a' meaning that the lowercase latin alphabet is used: a, b,
d, e, …
'A' meaning that the uppercase latin alphabet is used: A, B,
D, E, …
'i' meaning that the lowercase latin numerals are used: i, ii,
iv, v, …
'I' meaning that the uppercase latin numerals are used: I, II,
IV, V, …"
[this val]
(aset this "type" val))
(defn compact
"Property.
Is a Boolean indicating that spacing between list items should
reduced. This property reflects the compact attribute only, it
consider the line-height CSS property used for that behavior
modern pages."
[this]
(-> this (.-compact)))
(defn set-compact!
"Property.
Is a Boolean indicating that spacing between list items should
reduced. This property reflects the compact attribute only, it
consider the line-height CSS property used for that behavior
modern pages."
[this val]
(aset this "compact" val))