aboutsummaryrefslogtreecommitdiffstats
path: root/src/angular/filterbar
diff options
context:
space:
mode:
authorIsrael Lavi <il0695@att.com>2018-08-07 10:54:17 +0300
committerIsrael Lavi <il0695@att.com>2018-08-07 11:06:44 +0300
commitb2a3acea0d0f66028c9ce5fad02d4ecc64abf70c (patch)
tree8d70110f34cb845965c42a5915e950bca967d2c3 /src/angular/filterbar
parent05b37297177e8a342668c15e5d6f738b51f7aedd (diff)
Initial commit.
Adding files needed for Linux Foundation. Change-Id: I9f2b4851a5ae01f83800c7f8bab8608a2221c730 Issue-ID: SDC-1608 Signed-off-by: Israel Lavi <il0695@att.com>
Diffstat (limited to 'src/angular/filterbar')
-rw-r--r--src/angular/filterbar/filter-bar.component.html.ts2
-rw-r--r--src/angular/filterbar/filter-bar.component.ts5
-rw-r--r--src/angular/filterbar/filter-bar.module.ts6
3 files changed, 7 insertions, 6 deletions
diff --git a/src/angular/filterbar/filter-bar.component.html.ts b/src/angular/filterbar/filter-bar.component.html.ts
index a7d55e2..ca1c837 100644
--- a/src/angular/filterbar/filter-bar.component.html.ts
+++ b/src/angular/filterbar/filter-bar.component.html.ts
@@ -1,4 +1,4 @@
-export default `
+export const template = `
<div class="search-bar-container">
<sdc-input class="search-bar-input"
[label]="label"
diff --git a/src/angular/filterbar/filter-bar.component.ts b/src/angular/filterbar/filter-bar.component.ts
index 49cc154..fa3eac4 100644
--- a/src/angular/filterbar/filter-bar.component.ts
+++ b/src/angular/filterbar/filter-bar.component.ts
@@ -1,5 +1,5 @@
import { Component, Input, Output, EventEmitter, HostBinding } from '@angular/core';
-import template from "./filter-bar.component.html";
+import { template } from "./filter-bar.component.html";
@Component({
selector: 'sdc-filter-bar',
@@ -12,7 +12,6 @@ export class FilterBarComponent {
@Input() public placeholder: string;
@Input() public label: string;
@Input() public debounceTime: number;
-
@Input() public searchQuery: string;
@Output() public searchQueryChange: EventEmitter<any> = new EventEmitter<any>();
@@ -20,7 +19,7 @@ export class FilterBarComponent {
this.debounceTime = 200;
}
- private searchTextChange = ($event): void => {
+ public searchTextChange = ($event): void => {
this.searchQueryChange.emit($event);
}
diff --git a/src/angular/filterbar/filter-bar.module.ts b/src/angular/filterbar/filter-bar.module.ts
index c3604ed..f03caed 100644
--- a/src/angular/filterbar/filter-bar.module.ts
+++ b/src/angular/filterbar/filter-bar.module.ts
@@ -7,8 +7,10 @@ import { FormElementsModule } from "../form-elements/form-elements.module";
declarations: [
FilterBarComponent
],
- imports: [CommonModule,
- FormElementsModule],
+ imports: [
+ CommonModule,
+ FormElementsModule
+ ],
exports: [
FilterBarComponent
],