Angular ag栅格角度2割台模板
我在ng2组件中包裹了ag网格 我希望第一个标题是带有父功能的复选框 如何从容器组件执行此操作 ag网格组件Angular ag栅格角度2割台模板,angular,ag-grid,Angular,Ag Grid,我在ng2组件中包裹了ag网格 我希望第一个标题是带有父功能的复选框 如何从容器组件执行此操作 ag网格组件 @Component({ moduleId: module.id, selector: 'rg-grid', templateUrl: 'grid-control.component.html', directives: [AgGridNg2] }) export class RgGridComponent { private gridOptions: GridO
@Component({
moduleId: module.id,
selector: 'rg-grid',
templateUrl: 'grid-control.component.html',
directives: [AgGridNg2]
})
export class RgGridComponent {
private gridOptions: GridOptions;
private showGrid: boolean;
@Input() rowData: any[];
@Input() columnDefs: AbstractColDef[];
}
@Component({
moduleId: module.id,
selector: 'alerts-table',
templateUrl: 'alertsTable.component.html',
directives: [RgGridComponent]
})
export class AlertsTableComponent implements OnInit {
selectedAlert: IAlert;
users: User[];
checkedAlerts : IAlert[];
displayDialog : boolean;
dialogContent : string;
columns : ColDef[];
constructor(private _alertsService: AlertsService, private _usersService: UsersService) {
this.displayDialog = false;
this.investigationRequest = new EventEmitter<number>();
this.columns = [ ??? ]
this.checkedAlerts = new Array<Alert>();
}
容器组件
@Component({
moduleId: module.id,
selector: 'rg-grid',
templateUrl: 'grid-control.component.html',
directives: [AgGridNg2]
})
export class RgGridComponent {
private gridOptions: GridOptions;
private showGrid: boolean;
@Input() rowData: any[];
@Input() columnDefs: AbstractColDef[];
}
@Component({
moduleId: module.id,
selector: 'alerts-table',
templateUrl: 'alertsTable.component.html',
directives: [RgGridComponent]
})
export class AlertsTableComponent implements OnInit {
selectedAlert: IAlert;
users: User[];
checkedAlerts : IAlert[];
displayDialog : boolean;
dialogContent : string;
columns : ColDef[];
constructor(private _alertsService: AlertsService, private _usersService: UsersService) {
this.displayDialog = false;
this.investigationRequest = new EventEmitter<number>();
this.columns = [ ??? ]
this.checkedAlerts = new Array<Alert>();
}
@组件({
moduleId:module.id,
选择器:“警报表”,
templateUrl:'alertsTable.component.html',
指令:[RgGridComponent]
})
导出类AlertsTableComponent实现OnInit{
所选警报:IAlert;
用户:用户[];
核对人:IAlert[];
显示对话框:布尔;
对话框内容:字符串;
列:ColDef[];
构造函数(私有警报服务:警报服务,私有用户服务:用户服务){
this.displayDialog=false;
this.investigationRequest=neweventemitter();
this.columns=[???]
this.checkedAlerts=新数组();
}
ag Grid不支持标题中的Angular 2组件。这是我们目前正在研究的东西,希望在三周后发布。它可能是v8.0.0(我们将在本周推出v7.2.0,然后下一个主要版本将有新标题).ag Grid在标题中不支持Angular 2组件。这是我们目前正在研究的东西,希望在三周后发布。它可能是v8.0.0(我们将在本周推出v7.2.0,然后下一个主要版本将有新标题).谢谢你,尼尔你是最棒的!谢谢你,尼尔你是最棒的!