File tree Expand file tree Collapse file tree 2 files changed +17
-1
lines changed Expand file tree Collapse file tree 2 files changed +17
-1
lines changed Original file line number Diff line number Diff line change @@ -116,7 +116,7 @@ const textareaStyleReset = `
116116
117117@Component ( {
118118 template : `
119- <textarea mdTextareaAutosize [minRows ]="minRows" [maxRows ]="maxRows"
119+ <textarea mdTextareaAutosize [mdAutosizeMinRows ]="minRows" [mdAutosizeMaxRows ]="maxRows"
120120 #autosize="mdTextareaAutosize">
121121 {{content}}
122122 </textarea>` ,
Original file line number Diff line number Diff line change @@ -17,9 +17,25 @@ export class MdTextareaAutosize implements OnInit {
1717 /** Minimum number of rows for this textarea. */
1818 @Input ( ) minRows : number ;
1919
20+ get mdAutosizeMinRows ( ) : number {
21+ return this . minRows ;
22+ }
23+
24+ @Input ( ) set mdAutosizeMinRows ( value : number ) {
25+ this . minRows = value ;
26+ }
27+
2028 /** Maximum number of rows for this textarea. */
2129 @Input ( ) maxRows : number ;
2230
31+ get mdAutosizeMaxRows ( ) : number {
32+ return this . maxRows ;
33+ }
34+
35+ @Input ( ) set mdAutosizeMaxRows ( value : number ) {
36+ this . maxRows = value ;
37+ }
38+
2339 /** Cached height of a textarea with a single row. */
2440 private _cachedLineHeight : number ;
2541
You can’t perform that action at this time.
0 commit comments