can now pass params to commands.

This commit is contained in:
David Lebee
2021-09-03 17:32:52 -04:00
parent 21a93e1a1a
commit e7f9f2c52d
8 changed files with 20 additions and 11 deletions
+2 -2
View File
@@ -1,10 +1,10 @@
{
"name": "@poweredsoft/ngx-cdk-ui",
"version": "0.0.16",
"version": "0.0.17",
"peerDependencies": {
"@angular/common": "^9.1.9",
"@angular/core": "^9.1.9",
"@poweredsoft/data": "^0.0.35"
"@poweredsoft/data": "^0.0.36"
},
"dependencies": {
"tslib": "^1.10.0"
@@ -24,6 +24,7 @@ export class DsCommandComponent implements OnInit, OnDestroy {
private _refreshOnSuccess: boolean = true;
@Input() params: any;
@Input() dataSource: IDataSource<any>;
@Input() name: string;
@Input() model: any;
@@ -131,7 +132,8 @@ export class DsCommandComponent implements OnInit, OnDestroy {
resolveModel() {
this.dataSource.resolveCommandModelByName({
model: this.model,
command: this.name
command: this.name,
params: this.params
}).subscribe(
commandModel => {
this.command = commandModel;