bolierplate code for text-filter
This commit is contained in:
parent
42569b3c81
commit
b08c007d56
@ -1,6 +1,5 @@
|
||||
import { Component, OnInit, TemplateRef } from '@angular/core';
|
||||
import { BsModalRef, BsModalService } from 'ngx-bootstrap/modal';
|
||||
import { ConfirmModalService } from '../../confirm-modal.service';
|
||||
import { Observer } from 'rxjs';
|
||||
|
||||
|
||||
@ -19,7 +18,7 @@ export class ConfirmModalComponent implements OnInit {
|
||||
noClass: string;
|
||||
observer: Observer<boolean>;
|
||||
|
||||
constructor(private modelRef: BsModalRef, private actionService: ConfirmModalService) {
|
||||
constructor(private modelRef: BsModalRef) {
|
||||
|
||||
}
|
||||
|
||||
|
@ -0,0 +1,14 @@
|
||||
import { NgModule } from '@angular/core';
|
||||
import { CommonModule } from '@angular/common';
|
||||
import { TextFilterComponent } from './text-filter/text-filter.component';
|
||||
|
||||
|
||||
|
||||
@NgModule({
|
||||
declarations: [TextFilterComponent],
|
||||
imports: [
|
||||
CommonModule
|
||||
],
|
||||
exports: [TextFilterComponent]
|
||||
})
|
||||
export class GridFilterModule { }
|
@ -0,0 +1 @@
|
||||
<h1>text-filter works!</h1>
|
@ -0,0 +1,18 @@
|
||||
import { Component, OnInit, Input } from '@angular/core';
|
||||
import { IDataSource } from '@poweredsoft/data';
|
||||
|
||||
@Component({
|
||||
selector: 'psbx-ds-text-filter',
|
||||
templateUrl: './text-filter.component.html',
|
||||
styleUrls: ['./text-filter.component.scss']
|
||||
})
|
||||
export class TextFilterComponent implements OnInit {
|
||||
|
||||
@Input() dataSource : IDataSource<any>;
|
||||
|
||||
constructor() { }
|
||||
|
||||
ngOnInit(): void {
|
||||
}
|
||||
|
||||
}
|
@ -12,4 +12,6 @@ export * from './lib/confirm-modal/confirm-modal.module';
|
||||
export * from './lib/confirm-modal/confirm-modal.service';
|
||||
export * from './lib/confirm-modal/confirm-modal.directive';
|
||||
export * from './lib/spinner/spinner.module';
|
||||
export * from './lib/spinner/spinner/spinner.component';
|
||||
export * from './lib/spinner/spinner/spinner.component';
|
||||
export * from './lib/grid-filter/grid-filter.module';
|
||||
export * from './lib/grid-filter/text-filter/text-filter.component';
|
@ -3,13 +3,14 @@ import { CommonModule } from '@angular/common';
|
||||
|
||||
import { GridFilterDemoRoutingModule } from './grid-filter-demo-routing.module';
|
||||
import { GridFilterDemoComponent } from './grid-filter-demo/grid-filter-demo.component';
|
||||
|
||||
import { GridFilterModule } from '@poweredsoft/ngx-bootstrap';
|
||||
|
||||
@NgModule({
|
||||
declarations: [GridFilterDemoComponent],
|
||||
imports: [
|
||||
CommonModule,
|
||||
GridFilterDemoRoutingModule
|
||||
GridFilterDemoRoutingModule,
|
||||
GridFilterModule,
|
||||
]
|
||||
})
|
||||
export class GridFilterDemoModule { }
|
||||
|
@ -1 +1,2 @@
|
||||
<p>grid-filter-demo works!</p>
|
||||
<psbx-ds-text-filter></psbx-ds-text-filter>
|
Loading…
Reference in New Issue
Block a user