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

Script usage example #6

Open
ZiadJ opened this issue Aug 4, 2022 · 4 comments
Open

Script usage example #6

ZiadJ opened this issue Aug 4, 2022 · 4 comments

Comments

@ZiadJ
Copy link

ZiadJ commented Aug 4, 2022

Is there a demo showcasing creating and triggering the tooltip from code? Like, for instance, if one wants to display a component imported in code as a tooltip but on upon specific events like a right click event.

@thecodewarrior
Copy link
Owner

Not right now, but I could add and example of using manual triggers, however I'm not sure I understand what you mean by "display a component imported in code". Do you mean using a render function?

@ZiadJ
Copy link
Author

ZiadJ commented Aug 5, 2022

Yes, a render function or it could be a component imported through the import function or referenced through ref. I like the KISS approach but also want to be sure that it is not limited to templates. Right-click functionality is also quite handy.

@thecodewarrior
Copy link
Owner

I haven't tried it in render functions since I haven't used them much and prefer using the template approach, so it isn't really designed with that as the goal, but I'll take a look. I'll also add examples of using manual triggers and context menu triggers. Depending on how much it complicates the code I may add a custom context menu trigger built-in

@ZiadJ
Copy link
Author

ZiadJ commented Aug 8, 2022

Ok, thanks for the quick response. Concerning the context menu may be the official example from VueTippy can provide some clues.

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