Skip to content

Forward URL search params to custom widget #1544

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
SimonMulquin opened this issue Apr 3, 2025 · 0 comments
Open

Forward URL search params to custom widget #1544

SimonMulquin opened this issue Apr 3, 2025 · 0 comments

Comments

@SimonMulquin
Copy link

Describe the problem to be solved

Here is a little use case:

I made a simple pdf viewer widget here:
https://github.com/Servant-Cities/grist-integrations/tree/main/widgets/pdf-viewer

I use it for my contracts and for education materials.

For the later, it would like to share a link to the proper record in Grist (using the anchor link) and add a page parameter to let the widget scroll to a certain page but this will not work since the widget's iframe cannot access the search parameters of the parent page (Grist)

This would help me reference specific informations in some research documents or e-books (I use another table to map information discovery and learnings, sometimes the information I source is actually an anchor link to a resource I manage in Grist)

Describe the solution you would like

This would be great to add sharing capacities for widgets.

A solution I envision would be to let the user allow to forward certain values from the URL search params to the widget by configuring the widget options or adding an access level and extend the plugin API capabilities to some of the parent window's information.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant