diff options
author | Rachitha Ramappa <rachitha.ramappa@att.com> | 2020-03-27 10:55:45 +0530 |
---|---|---|
committer | Rachitha Ramappa <rachitha.ramappa@att.com> | 2020-03-27 11:06:41 +0530 |
commit | 13758cf841eda6ab5c2c7b7ffa204ee42f298644 (patch) | |
tree | 861de6ce63dc7f318b52d6e8b1061829f22cc89e /ecomp-sdk/portalsdk-tag-lib-test-app/src | |
parent | 7d3ad2425c0a774179ddb522e741d977c3bcf992 (diff) |
Menu mandatory field, add/update fixes
Change-Id: I238d9ba1ae20210bd305461ebc2fd6180ee9940d
Issue-ID: PORTAL-864
Signed-off-by: rachitha.ramappa@att.com
Diffstat (limited to 'ecomp-sdk/portalsdk-tag-lib-test-app/src')
-rw-r--r-- | ecomp-sdk/portalsdk-tag-lib-test-app/src/app/app.component.ts | 16 | ||||
-rw-r--r-- | ecomp-sdk/portalsdk-tag-lib-test-app/src/app/shared/services/app.service.ts | 4 |
2 files changed, 15 insertions, 5 deletions
diff --git a/ecomp-sdk/portalsdk-tag-lib-test-app/src/app/app.component.ts b/ecomp-sdk/portalsdk-tag-lib-test-app/src/app/app.component.ts index 536b1714..486ebf6b 100644 --- a/ecomp-sdk/portalsdk-tag-lib-test-app/src/app/app.component.ts +++ b/ecomp-sdk/portalsdk-tag-lib-test-app/src/app/app.component.ts @@ -39,12 +39,20 @@ export class AppComponent implements OnInit{ //Demonstrating disable feature let column = new Column("id","ID",ColumnTypes.TEXT, false,list); column.setIsColumnDisabled = true; - this.columns.push(column); - this.columns.push(new Column("name","Name",ColumnTypes.TEXT, true,list)); - this.columns.push(new Column("company","Company", ColumnTypes.TEXT, false,list)); - this.columns.push(new Column("location","Location", ColumnTypes.DROPDOWN, true,list)); + let name = new Column("name","Name",ColumnTypes.TEXT, true,list); + name.setIsColumnMandatory = true; + this.columns.push(name); + + let company = new Column("company","Company", ColumnTypes.TEXT, false,list); + company.setIsColumnMandatory = false; + this.columns.push(company); + + let location = new Column("location","Location", ColumnTypes.DROPDOWN, true,list); + location.setIsColumnMandatory = true; + this.columns.push(location); + console.log("Columns : ", this.columns); this.settings = new DataTableSettings() this.settings.columns = this.columns; this.settings.isPaginationEnabled=true; diff --git a/ecomp-sdk/portalsdk-tag-lib-test-app/src/app/shared/services/app.service.ts b/ecomp-sdk/portalsdk-tag-lib-test-app/src/app/shared/services/app.service.ts index 0860e113..aade5595 100644 --- a/ecomp-sdk/portalsdk-tag-lib-test-app/src/app/shared/services/app.service.ts +++ b/ecomp-sdk/portalsdk-tag-lib-test-app/src/app/shared/services/app.service.ts @@ -2,7 +2,7 @@ import { Injectable } from '@angular/core'; import { RdpCrudInterface } from 'portalsdk-tag-lib'; import { HttpClient, HttpParams } from '@angular/common/http'; import { map } from "rxjs/operators"; -import { Observable } from 'rxjs'; +import { Observable, BehaviorSubject } from 'rxjs'; @Injectable({ providedIn: 'root' @@ -10,12 +10,14 @@ import { Observable } from 'rxjs'; export class AppService implements RdpCrudInterface{ constructor(private http:HttpClient) { } + public statusResponse = new BehaviorSubject(""); add(data:any){ console.log("Add method is getting called from AppServie data:: ",data); } update(data:any){ console.log("Update method is getting called from AppServie data:: ",data); + this.statusResponse.next("202"); } delete(data:any){ |