-
-
Notifications
You must be signed in to change notification settings - Fork 27
Expand file tree
/
Copy pathPropDefs.scala
More file actions
86 lines (77 loc) · 2.78 KB
/
Copy pathPropDefs.scala
File metadata and controls
86 lines (77 loc) · 2.78 KB
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
package com.raquo.domtypes.defs.props
import com.raquo.domtypes.common.PropDef
/** HTML element properties that don't reflect onto attributes. See also: ReflectedHtmlAttrDefs */
object PropDefs {
val defs: List[PropDef] = List(
PropDef(
scalaName = "indeterminate",
domName = "indeterminate",
scalaValueType = "Boolean",
domValueType = "Boolean",
codec = "BooleanAsIs",
reflectedAttr = None,
commentLines = List(
"In addition to the checked and unchecked states, there is a third state",
"a checkbox can be in: indeterminate. This is a state in which it's",
"impossible to say whether the item is toggled on or off.",
),
docUrls = List(
"https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/checkbox#Indeterminate_state_checkboxes"
),
),
PropDef(
scalaName = "checked",
domName = "checked",
scalaValueType = "Boolean",
domValueType = "Boolean",
codec = "BooleanAsIs",
reflectedAttr = None,
commentLines = List(
"When the value of the type attribute is \"radio\" or \"checkbox\", this property",
"determines whether it is checked or not.",
"This is different from `checked` _attribute_,",
"which contains the _initial_ checked status of the element.",
"More info: https://stackoverflow.com/a/6004028/2601788 (`checked` behaves similar to `value`)",
"",
"See also: defaultChecked prop / attribute" // #TODO[Docs] link to my docs?
),
docUrls = List(
),
),
PropDef(
scalaName = "selected",
domName = "selected",
scalaValueType = "Boolean",
domValueType = "Boolean",
codec = "BooleanAsIs",
reflectedAttr = None,
commentLines = List(
"Indicates whether an `<option>` element is _currently_ selected.",
"This is different from `selected` _attribute_,",
"which contains the _initial_ selected status of the element.",
"More info: https://stackoverflow.com/a/6004028/2601788 (`selected` behaves similar to `value`)",
"",
"See also: defaultSelected prop / attribute" // #TODO[Docs] link to my docs?
),
docUrls = List(
),
),
PropDef(
scalaName = "value",
domName = "value",
scalaValueType = "String",
domValueType = "String",
codec = "StringAsIs",
reflectedAttr = None,
commentLines = List(
"Current value of the element. This is different from `value` _attribute_,",
"which contains the _initial_ value of the element.",
"More info: https://stackoverflow.com/a/6004028/2601788",
"",
"See also: defaultValue prop / attribute" // #TODO[Docs] link to my docs?
),
docUrls = List(
),
),
)
}