ag-grid/ag-grid-react-example

How to use JSX in headerCellTemplate

arindambarman1-zz opened this issue · 2 comments

On header cell click I need to call function in the following format

  colDefs.push({ headerName: "Date",
                       field: 'groups.date',
                       editable: false,
                       suppressMovable: true,
                       pinned: 'left',
                       headerCellTemplate: function(header){
                         return (<span onClick={() => {this.doSomething}}></span>)
                       }
                     })

I can't seem to find this how to do in the documentation

Nevermind I found another solution to this but it would be great if it supported
JSX also.

What other solution did you find?