mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2026-09-09 18:03:21 +00:00
passing data to created component, removed obsolete files
This commit is contained in:
-3
@@ -1,3 +0,0 @@
|
|||||||
div {
|
|
||||||
background-color: inherit;
|
|
||||||
}
|
|
||||||
+9
@@ -51,6 +51,15 @@ export class ScreenCloudComponent implements OnInit {
|
|||||||
this.screenComponent = { type: this.screenId };
|
this.screenComponent = { type: this.screenId };
|
||||||
const componentType = this.screenRenderingService.resolveComponentType(this.screenComponent);
|
const componentType = this.screenRenderingService.resolveComponentType(this.screenComponent);
|
||||||
this.componentRef = this.container.createComponent(componentType);
|
this.componentRef = this.container.createComponent(componentType);
|
||||||
|
if (this.taskId) {
|
||||||
|
this.componentRef.setInput('taskId', this.taskId);
|
||||||
|
}
|
||||||
|
if (this.appName) {
|
||||||
|
this.componentRef.setInput('appName', this.appName);
|
||||||
|
}
|
||||||
|
if (this.screenId) {
|
||||||
|
this.componentRef.setInput('screenId', this.screenId);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
-3
@@ -1,3 +0,0 @@
|
|||||||
div {
|
|
||||||
background-color: inherit;
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user