can now pass params to commands.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user