Skip to content
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

Adding an anchor to the custom widget builder #150

Open
agrippaharfleur opened this issue Jan 10, 2025 · 3 comments
Open

Adding an anchor to the custom widget builder #150

agrippaharfleur opened this issue Jan 10, 2025 · 3 comments

Comments

@agrippaharfleur
Copy link

Hi @berhalak,

I’m wrapping up a document designed for extensive use by non-tech-savvy users, and I’m setting up a DocGristTour tutorial to guide them effectively. However, I noticed that custom widgets currently don’t support anchors.

Would it be possible to add anchor functionality for custom widgets? Some of these widgets include action buttons or specific actions that are critical to the document's workflow. Being able to include and explain them in the tutorial would make a huge difference in ensuring smooth user adoption.

If there is any chances that upgrade can be made, that would be awesome! 🙏

@berhalak
Copy link
Contributor

Hi @agrippaharfleur,

Can you share a sample scenario? I'm not sure I fully understand the connection between DocGristTour and custom widgets.

@agrippaharfleur
Copy link
Author

Hi @berhalak,

Here is a sample scenario:
https://grist.numerique.gouv.fr/o/docs/cutoDmnMDRe6/Anchor-exemple/p/39

On this page, I’d like to add a step in the GristDocTour to explain the button, which is part of a custom widget. But unlike most Grist blocks (which provide an anchor link accessible via the dots menu), the custom widget block doesn’t seem to support anchors.
Capture d’écran 2025-01-10 à 17 10 23

I’ve tried few workarounds:
-> Inspecting the page to find a pattern like a1.s187.r107.c231 that Grist typically uses for anchors, but without success.
-> Attempting to create a custom anchor by using an ID from the HTML of my custom widget, but that didn’t work either.

Did I make more sense with that exemple?

@berhalak
Copy link
Contributor

Hi @agrippaharfleur,

Yes thank you for the screenshoot. I'll take a look if it is possible and will return to you.

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

2 participants