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 = `
116
116
117
117
@Component ( {
118
118
template : `
119
- <textarea mdTextareaAutosize [minRows ]="minRows" [maxRows ]="maxRows"
119
+ <textarea mdTextareaAutosize [mdAutosizeMinRows ]="minRows" [mdAutosizeMaxRows ]="maxRows"
120
120
#autosize="mdTextareaAutosize">
121
121
{{content}}
122
122
</textarea>` ,
Original file line number Diff line number Diff line change @@ -17,9 +17,25 @@ export class MdTextareaAutosize implements OnInit {
17
17
/** Minimum number of rows for this textarea. */
18
18
@Input ( ) minRows : number ;
19
19
20
+ get mdAutosizeMinRows ( ) : number {
21
+ return this . minRows ;
22
+ }
23
+
24
+ @Input ( ) set mdAutosizeMinRows ( value : number ) {
25
+ this . minRows = value ;
26
+ }
27
+
20
28
/** Maximum number of rows for this textarea. */
21
29
@Input ( ) maxRows : number ;
22
30
31
+ get mdAutosizeMaxRows ( ) : number {
32
+ return this . maxRows ;
33
+ }
34
+
35
+ @Input ( ) set mdAutosizeMaxRows ( value : number ) {
36
+ this . maxRows = value ;
37
+ }
38
+
23
39
/** Cached height of a textarea with a single row. */
24
40
private _cachedLineHeight : number ;
25
41
You can’t perform that action at this time.
0 commit comments