File tree Expand file tree Collapse file tree 4 files changed +21
-1
lines changed
docs/src/pages/components
src/components/mdInputContainer Expand file tree Collapse file tree 4 files changed +21
-1
lines changed Original file line number Diff line number Diff line change 100
100
<md-table-cell ><code >Number</code ></md-table-cell >
101
101
<md-table-cell >Sets the maxlength and enable the text counter.</md-table-cell >
102
102
</md-table-row >
103
+
104
+ <md-table-row >
105
+ <md-table-cell >readonly</md-table-cell >
106
+ <md-table-cell ><code >Boolean</code ></md-table-cell >
107
+ <md-table-cell >Sets the component to read only mode.</md-table-cell >
108
+ </md-table-row >
103
109
</md-table-body >
104
110
</md-table >
105
111
</api-table >
150
156
<md-table-cell ><code >Number</code ></md-table-cell >
151
157
<md-table-cell >Sets the maxlength and enable the text counter.</md-table-cell >
152
158
</md-table-row >
159
+
160
+ <md-table-row >
161
+ <md-table-cell >readonly</md-table-cell >
162
+ <md-table-cell ><code >Boolean</code ></md-table-cell >
163
+ <md-table-cell >Sets the component to read only mode.</md-table-cell >
164
+ </md-table-row >
153
165
</md-table-body >
154
166
</md-table >
155
167
</api-table >
163
175
<label >Initial value</label >
164
176
<md-input v-model =" initialValue" ></md-input >
165
177
</md-input-container >
178
+
179
+ <md-input-container >
180
+ <label >Initial value (read only)</label >
181
+ <md-input v-model =" initialValue" readonly ></md-input >
182
+ </md-input-container >
166
183
167
184
<md-input-container >
168
185
<label >With label</label >
Original file line number Diff line number Diff line change @@ -9,7 +9,8 @@ export default {
9
9
required : Boolean ,
10
10
maxlength : [ Number , String ] ,
11
11
name : String ,
12
- placeholder : String
12
+ placeholder : String ,
13
+ readonly : Boolean
13
14
} ,
14
15
data ( ) {
15
16
return {
Original file line number Diff line number Diff line change 7
7
:required =" required"
8
8
:placeholder =" placeholder"
9
9
:maxlength =" maxlength"
10
+ :readonly =" readonly"
10
11
@focus =" onFocus"
11
12
@blur =" onBlur"
12
13
@input =" onInput"
Original file line number Diff line number Diff line change 6
6
:required =" required"
7
7
:placeholder =" placeholder"
8
8
:maxlength =" maxlength"
9
+ :readonly =" readonly"
9
10
@focus =" onFocus"
10
11
@blur =" onBlur"
11
12
@input =" onInput" ></textarea >
You can’t perform that action at this time.
0 commit comments