Advertisement
Guest User

Untitled

a guest
Jun 28th, 2017
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import { FormControl } from '@angular/forms';
  2. import { AfterViewInit, Component, EventEmitter, HostListener, Input, NgZone, Output, ViewChild } from '@angular/core';
  3. import { Observable, Subscription } from 'rxjs';
  4.  
  5. @Component({
  6.     selector: 'account-lookup',
  7.     templateUrl: './account-lookup.component.html',
  8.     styleUrls: ['./account-lookup.component.less'],
  9. })
  10. export class AccountLookupComponent {
  11.     constructor(private ngZone: NgZone) {
  12.     }
  13.  
  14.     @Input()
  15.     public placeholder: string = 'Find Customers';
  16.     @Input()
  17.     public appendAddressLookup: boolean = false;
  18.     @Input()
  19.     public useCompactResults: boolean = true;
  20.     @Input()
  21.     public filterCurrentAccount: boolean = false;
  22.     @Input()
  23.     public useAccountIdSearch: boolean = true;
  24.  
  25.     @Output()
  26.     public searchCompleted = new EventEmitter();
  27.     @Output()
  28.     public accountSelected = new EventEmitter();
  29.  
  30.     public readonly DEFAULT_LOCATION_PLACEHOLDER: string = 'Find Locations';
  31.  
  32.     public searchTermInput: FormControl;
  33.     public locationSearchPlaceholder: string = this.DEFAULT_LOCATION_PLACEHOLDER;
  34.  
  35. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement