From 8436118f2194d6513afd2e268a662150d6ccbf16 Mon Sep 17 00:00:00 2001 From: jamesnik Date: Sun, 3 Sep 2017 22:46:06 +0700 Subject: [PATCH 1/2] Update ng-table.component.ts Add bootstrap class form-control-sm for small input --- components/table/ng-table.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/table/ng-table.component.ts b/components/table/ng-table.component.ts index a93885d..ef0207f 100644 --- a/components/table/ng-table.component.ts +++ b/components/table/ng-table.component.ts @@ -21,7 +21,7 @@ import { DomSanitizer, SafeHtml } from '@angular/platform-browser'; From 1c1abf27dd514839fb7ec02635593750ff18dc37 Mon Sep 17 00:00:00 2001 From: jamesnik Date: Sun, 3 Sep 2017 23:01:47 +0700 Subject: [PATCH 2/2] Update ng-table.component.ts Add public clearColumns () : void { this._columns = []; } --- components/table/ng-table.component.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/components/table/ng-table.component.ts b/components/table/ng-table.component.ts index ef0207f..d756a59 100644 --- a/components/table/ng-table.component.ts +++ b/components/table/ng-table.component.ts @@ -90,6 +90,10 @@ export class NgTableComponent { public get config():any { return this._config; } + + public clearColumns () : void { + this._columns = []; + } public get configColumns():any { let sortColumns:Array = [];