Skip to content

Commit 5bdbf64

Browse files
authored
[Fabric] add missing TextField props (#65)
1 parent 727612c commit 5bdbf64

File tree

3 files changed

+31
-0
lines changed

3 files changed

+31
-0
lines changed

libs/fabric/src/lib/components/text-field/base-text-field.component.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,17 @@ import { ITextFieldProps } from 'office-ui-fabric-react/lib/TextField';
1717
export class FabBaseTextFieldComponent extends ReactWrapperComponent<ITextFieldProps> implements OnInit {
1818
@ViewChild('reactNode') protected reactNodeRef: ElementRef;
1919

20+
@Input() required?: ITextFieldProps['required'];
21+
@Input() type?: ITextFieldProps['type'];
22+
@Input() cols?: ITextFieldProps['cols'];
23+
@Input() colSpan?: ITextFieldProps['colSpan'];
24+
@Input() rows?: ITextFieldProps['rows'];
25+
@Input() rowSpan?: ITextFieldProps['rowSpan'];
26+
@Input() min?: ITextFieldProps['min'];
27+
@Input() max?: ITextFieldProps['max'];
28+
@Input() pattern?: ITextFieldProps['pattern'];
29+
@Input('for') htmlFor?: ITextFieldProps['htmlFor'];
30+
2031
@Input() componentRef?: ITextFieldProps['componentRef'];
2132
@Input() multiline?: ITextFieldProps['multiline'];
2233
@Input() resizable?: ITextFieldProps['resizable'];

libs/fabric/src/lib/components/text-field/masked-text-field.component.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,16 @@ import { FabBaseTextFieldComponent } from './base-text-field.component';
1010
template: `
1111
<MaskedTextField
1212
#reactNode
13+
[required]="required"
14+
[type]="type"
15+
[cols]="cols"
16+
[colSpan]="colSpan"
17+
[rows]="rows"
18+
[rowSpan]="rowSpan"
19+
[min]="min"
20+
[max]="max"
21+
[pattern]="pattern"
22+
[htmlFor]="htmlFor"
1323
[componentRef]="componentRef"
1424
[multiline]="multiline"
1525
[resizable]="resizable"

libs/fabric/src/lib/components/text-field/text-field.component.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,16 @@ import { FabBaseTextFieldComponent } from './base-text-field.component';
1010
template: `
1111
<TextField
1212
#reactNode
13+
[required]="required"
14+
[type]="type"
15+
[cols]="cols"
16+
[colSpan]="colSpan"
17+
[rows]="rows"
18+
[rowSpan]="rowSpan"
19+
[min]="min"
20+
[max]="max"
21+
[pattern]="pattern"
22+
[htmlFor]="htmlFor"
1323
[componentRef]="componentRef"
1424
[multiline]="multiline"
1525
[resizable]="resizable"

0 commit comments

Comments
 (0)