diff --git a/src/module/component/mat-google-maps-autocomplete.component.html b/src/module/component/mat-google-maps-autocomplete.component.html index 1e15ffd7..7b7909b4 100644 --- a/src/module/component/mat-google-maps-autocomplete.component.html +++ b/src/module/component/mat-google-maps-autocomplete.component.html @@ -1,17 +1,17 @@ - Address + {{addressLabelText}} - The address is required + {{requiredErrorText}} - The address is not valid + {{invalidErrorText}} diff --git a/src/module/component/mat-google-maps-autocomplete.component.ts b/src/module/component/mat-google-maps-autocomplete.component.ts index d0d3d7cc..08b2a4f5 100644 --- a/src/module/component/mat-google-maps-autocomplete.component.ts +++ b/src/module/component/mat-google-maps-autocomplete.component.ts @@ -26,7 +26,19 @@ export class MatGoogleMapsAutocompleteComponent implements OnInit { @ViewChild('search') public searchElementRef: ElementRef; - + + @Input() + addressLabelText: string = 'Address'; + + @Input() + placeholderText: string = 'Please enter the address'; + + @Input() + requiredErrorText: string = 'The address is required'; + + @Input() + invalidErrorText: string = 'The address is not valid'; + @Input() appearance: string | Appearance = Appearance.STANDARD;