Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ag-grid overlayLoadingTemplate add hyperlink and click enable

I am using ag-grid ,while loading the data I want to show the message using overlayLoadingTemplate and also hyperlink for cancel the loading if it take more time to load the data . we added hyperlink but it was not clickable . How to clickable the hyperlink this.gridOptions.overlayLoadingTemplate = 'loading...... Cancel...'; Thanks

like image 383
user3106878 Avatar asked Oct 24 '25 23:10

user3106878


1 Answers

The problem is that the ag-grid overlay uses the pointer-events: none; style. You can easily fix this by setting pointer-events to auto in your template code. Something like:

this.options.overlayNoRowsTemplate = '<div style="pointer-events: auto;">This is my template copy. Visit <a href="http://www.example.com/docs">our documentation</a> to learn more.</div>'

like image 51
Josh Avatar answered Oct 26 '25 16:10

Josh



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!