File tree Expand file tree Collapse file tree 4 files changed +45
-15
lines changed
docs/app/pages/Components Expand file tree Collapse file tree 4 files changed +45
-15
lines changed Original file line number Diff line number Diff line change 1
1
<template >
2
2
<div >
3
- <md-checkbox v-model =" array" value =" 1" >Array Checkbox</md-checkbox >
4
- <md-checkbox v-model =" array" value =" 2" >Array Checkbox</md-checkbox >
5
- <md-checkbox v-model =" boolean" :value =" false" >Boolean Checkbox</md-checkbox >
6
- <md-checkbox v-model =" string" value =" my-checkbox" >String Checkbox</md-checkbox >
7
- <md-checkbox v-model =" novalue" >No Value Checkbox</md-checkbox >
3
+ <md-checkbox v-model =" array" value =" 1" >Array</md-checkbox >
4
+ <md-checkbox v-model =" array" value =" 2" >Array</md-checkbox >
5
+ <md-checkbox v-model =" boolean" :value =" false" >Boolean</md-checkbox >
6
+ <md-checkbox v-model =" string" required value =" my-checkbox" >String <small >(required)</small ></md-checkbox >
7
+ <md-checkbox v-model =" novalue" >No Value</md-checkbox >
8
+ <md-checkbox v-model =" novalue" disabled >Disabled</md-checkbox >
8
9
9
10
<table >
10
11
<tr >
11
- <th >Array Checkbox </th >
12
- <th >Boolean Checkbox </th >
13
- <th >String Checkbox </th >
14
- <th >No Value Checkbox </th >
12
+ <th >Array</th >
13
+ <th >Boolean</th >
14
+ <th >String</th >
15
+ <th >No Value</th >
15
16
</tr >
16
17
17
18
<tr >
Original file line number Diff line number Diff line change 1
1
<template >
2
2
<div >
3
- <md-radio v-model =" radio" :value =" false" >Boolean Radio</md-radio >
4
- <md-radio v-model =" radio" value =" my-Radio" >String Radio</md-radio >
5
- <md-radio v-model =" radio" >No Value Radio</md-radio >
3
+ <md-radio v-model =" radio" :value =" false" >Boolean</md-radio >
4
+ <md-radio v-model =" radio" value =" my-radio" >String</md-radio >
5
+ <md-radio v-model =" radio" >No Value</md-radio >
6
+ <md-radio v-model =" radio" disabled >Disabled</md-radio >
6
7
7
- Radio value: {{ radio }}
8
+ Model value: {{ radio }}
8
9
</div >
9
10
</template >
10
11
Original file line number Diff line number Diff line change 65
65
checkboxClasses () {
66
66
return {
67
67
' md-checked' : this .isSelected ,
68
- ' md-disabled' : this .disabled
68
+ ' md-disabled' : this .disabled ,
69
+ ' md-required' : this .required
69
70
}
70
71
}
71
72
},
196
197
.md-checkbox-label {
197
198
height : $md-checkbox-size ;
198
199
padding-left : 16px ;
200
+ position : relative ;
199
201
line-height : $md-checkbox-size ;
200
202
}
201
203
}
215
217
border-color : transparent !important ;
216
218
}
217
219
}
220
+
221
+ .md-checkbox.md-required {
222
+ label :after {
223
+ position : absolute ;
224
+ top : 2px ;
225
+ right : 0 ;
226
+ transform : translateX (calc (100% + 2px ));
227
+ content : " *" ;
228
+ line-height : 1em ;
229
+ vertical-align : top ;
230
+ }
231
+ }
218
232
</style >
219
233
Original file line number Diff line number Diff line change 51
51
radioClasses () {
52
52
return {
53
53
' md-checked' : this .isSelected ,
54
- ' md-disabled' : this .disabled
54
+ ' md-disabled' : this .disabled ,
55
+ ' md-required' : this .required
55
56
}
56
57
}
57
58
},
146
147
.md-radio-label {
147
148
height : $md-radio-size ;
148
149
padding-left : 16px ;
150
+ position : relative ;
149
151
line-height : $md-radio-size ;
150
152
}
151
153
}
159
161
}
160
162
}
161
163
}
164
+
165
+ .md-radio.md-required {
166
+ label :after {
167
+ position : absolute ;
168
+ top : 2px ;
169
+ right : 0 ;
170
+ transform : translateX (calc (100% + 2px ));
171
+ content : " *" ;
172
+ line-height : 1em ;
173
+ vertical-align : top ;
174
+ }
175
+ }
162
176
</style >
163
177
You can’t perform that action at this time.
0 commit comments