-
Notifications
You must be signed in to change notification settings - Fork 25
Expand file tree
/
Copy pathHTMLOptionElement.js
More file actions
109 lines (89 loc) · 2.09 KB
/
HTMLOptionElement.js
File metadata and controls
109 lines (89 loc) · 2.09 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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
export function disabled(option) {
return function () {
return option.disabled;
};
}
export function setDisabled(disabled) {
return function (option) {
return function () {
option.disabled = disabled;
};
};
}
// ----------------------------------------------------------------------------
export function _form(option) {
return function () {
return option.form;
};
}
// ----------------------------------------------------------------------------
export function label(option) {
return function () {
return option.label;
};
}
export function setLabel(label) {
return function (option) {
return function () {
option.label = label;
};
};
}
// ----------------------------------------------------------------------------
export function defaultSelected(option) {
return function () {
return option.defaultSelected;
};
}
export function setDefaultSelected(defaultSelected) {
return function (option) {
return function () {
option.defaultSelected = defaultSelected;
};
};
}
// ----------------------------------------------------------------------------
export function selected(option) {
return function () {
return option.selected;
};
}
export function setSelected(selected) {
return function (option) {
return function () {
option.selected = selected;
};
};
}
// ----------------------------------------------------------------------------
export function value(option) {
return function () {
return option.value;
};
}
export function setValue(value) {
return function (option) {
return function () {
option.value = value;
};
};
}
// ----------------------------------------------------------------------------
export function text(option) {
return function () {
return option.text;
};
}
export function setText(text) {
return function (option) {
return function () {
option.text = text;
};
};
}
// ----------------------------------------------------------------------------
export function index(option) {
return function () {
return option.index;
};
}