mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
#967 container widgets reworked
- moved internals of container widget to corresponding folder - moved internals of dynamic table to corresponding folder
This commit is contained in:
committed by
Mario Romano
parent
084d962230
commit
f81f78d311
@@ -16,7 +16,7 @@
|
||||
*/
|
||||
|
||||
import { Component, AfterViewInit, OnInit } from '@angular/core';
|
||||
import { ContainerModel } from './../core/index';
|
||||
import { ContainerWidgetModel } from './container.widget.model';
|
||||
import { WidgetComponent } from './../widget.component';
|
||||
|
||||
@Component({
|
||||
@@ -27,7 +27,7 @@ import { WidgetComponent } from './../widget.component';
|
||||
})
|
||||
export class ContainerWidget extends WidgetComponent implements OnInit, AfterViewInit {
|
||||
|
||||
content: ContainerModel;
|
||||
content: ContainerWidgetModel;
|
||||
|
||||
onExpanderClicked() {
|
||||
if (this.content && this.content.isCollapsible()) {
|
||||
@@ -37,7 +37,7 @@ export class ContainerWidget extends WidgetComponent implements OnInit, AfterVie
|
||||
|
||||
ngOnInit() {
|
||||
if (this.field) {
|
||||
this.content = new ContainerModel(this.field.form, this.field.json);
|
||||
this.content = new ContainerWidgetModel(this.field.form, this.field.json);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user