Skip to content

Commit

Permalink
feat(textfield): add readonly support
Browse files Browse the repository at this point in the history
closes #252
fixes #250
  • Loading branch information
stasson committed Feb 10, 2018
2 parents 9f7c555 + ae8580e commit 63c7834
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions components/textfield/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ var vm = new Vue({
|`disabled`| [Number, String] | | binds to disabled state |
|`type`|String|| input type attribute |
|`name`|String|| input name attribute |
|`readonly`|String|| input is readonly |
|`label`| String | | hint text |
|`dense`| Boolean | | compresses the textfield to make it slightly smaller |
|`outline`| Boolean | | whether the textfield is outlined |
Expand Down
3 changes: 3 additions & 0 deletions components/textfield/mdc-textfield.vue
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
:name="name"
:minlength="minlength" :maxlength="maxlength"
:placeholder="inputPlaceHolder"
:readonly="readonly"
:aria-label="inputPlaceHolder"
:aria-controls="inputAriaControls"
:rows="rows" :cols="cols" ></textarea>
Expand All @@ -28,6 +29,7 @@
:type="type"
:name="name"
:minlength="minlength" :maxlength="maxlength"
:readonly="readonly"
:placeholder="inputPlaceHolder"
:aria-label="inputPlaceHolder"
:aria-controls="inputAriaControls" />
Expand Down Expand Up @@ -97,6 +99,7 @@ export default {
outline: Boolean,
disabled: Boolean,
required: Boolean,
readonly: Boolean,
valid: {type: Boolean, default: undefined},
minlength: { type: [Number, String], default: undefined },
maxlength: { type: [Number, String], default: undefined },
Expand Down

0 comments on commit 63c7834

Please sign in to comment.