dash-ag-grid icon indicating copy to clipboard operation
dash-ag-grid copied to clipboard

Using dcc.Link()

Open salam-abdul opened this issue 3 years ago • 2 comments

Hi,

I have tried a few different way but have not gotten this to work. I'm hoping I missed something simple. Is there any way to add a dcc.Link() to the dashAgGrid as a column or use a callback to achieve the "no refresh" navigation the dcc.Link() provides? This would be very beneficial in a multipage Dash app.

Thank you!

salam-abdul avatar Apr 08 '23 13:04 salam-abdul

Sorry for submitting, I see this is already noted in Dash AG Grid V2.0 Status #15

salam-abdul avatar Apr 08 '23 13:04 salam-abdul

Hi @salam-abdul

Using dcc.Link in a AG Grid cell is not available yet, however, if you upgrade to dash 2.9.2, it is now possible to navigate from a callback without refreshing the screen by using the new "callback-nav" option for the refresh prop:

dcc.Location(id="url", refresh="callback-nav")

There should only be one dcc.Location component in your app, and it should be in the main app.py file.

AnnMarieW avatar Apr 08 '23 14:04 AnnMarieW