ag-grid angular 2 header template -


i wrapped ag-grid in ng2 component.

and want first header checkbox parent functionality.

how can container component?

ag-grid.component

@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[]; } 

container component

@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>();     } 

ag-grid doesn't support angular 2 components in headers. working on right , hope have in release 3 weeks now. v8.0.0 (we pushing out v7.2.0 week, next major version have new headers).


Comments

Popular posts from this blog

Spring Boot + JPA + Hibernate: Unable to locate persister -

go - Golang: panic: runtime error: invalid memory address or nil pointer dereference using bufio.Scanner -

c - double free or corruption (fasttop) -