feat(clients): add/edit/delete data in single row datatables

- add checkbox-base.ts 
- update clients.service.ts file
- add delete feature in multi-row and single datatables

fixes: #460
This commit is contained in:
Jivjyot Singh
2019-12-01 23:20:51 +03:00
committed by Abhay Chawla
parent b6110a9c8a
commit 5436c10a90
8 changed files with 280 additions and 54 deletions
+10
View File
@@ -48,6 +48,16 @@ export class ClientsService {
return this.http.post(`/datatables/${datatableName}/${clientId}`, data, { params: httpParams });
}
editClientDatatableEntry(clientId: string, datatableName: string, data: any) {
const httpParams = new HttpParams().set('genericResultSet', 'true');
return this.http.put(`/datatables/${datatableName}/${clientId}`, data, { params: httpParams });
}
deleteDatatableContent(clientId: string, datatableName: string) {
const httpParams = new HttpParams().set('genericResultSet', 'true');
return this.http.delete(`/datatables/${datatableName}/${clientId}`, { params: httpParams });
}
getClientAccountData(clientId: string) {
return this.http.get(`/clients/${clientId}/accounts`);
}