Daniel Prosianikov
Daniel Prosianikov

Reputation: 118

Ag grid both custom and default header renderers Angular

Is it possible to use default and custom header renderer based on some boolean flag? Didn't find solution here https://www.ag-grid.com/javascript-grid-header-rendering/ In their example you can use custom header, but you can not switch between them. use case - bulk buttons in header instead of column names when you select a row

Upvotes: 0

Views: 889

Answers (1)

Maulik
Maulik

Reputation: 75

You can pass params to header component and show and hide icon base on params value.

headerComponentParams : {
        showIcon: true/false/somefunction // show icon in headerComponent base on this param value
    }

Upvotes: 0

Related Questions