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

Custom Hover Tooltip information Like Vscode? #52

Open
ysk3a opened this issue May 27, 2023 · 0 comments
Open

Custom Hover Tooltip information Like Vscode? #52

ysk3a opened this issue May 27, 2023 · 0 comments
Labels

Comments

@ysk3a
Copy link

ysk3a commented May 27, 2023

Is there a way to add custom hover tooltip to show extra dynamic information on the token the user hovered over?
Something like vscode's tooltip or https://codemirror.net/examples/tooltip/ or https://microsoft.github.io/monaco-editor/playground.html?source=v0.38.0#example-extending-language-services-hover-provider-example or https://github.com/angelozerr/tern.ace#text-hover

it seems like based on ace editor's demo https://mkslanc.github.io/ace-playground/#typescript-language-service, only examples that have language services added has some kind of hover tooltip behavior. I don't use any language services and even just using ace in angular without any wrapper, I couldn't figure out how to add a dynamic hover tooltip.
since in my project, when the user uses my app, it retrieves custom variables and methods that the user already set and I wanted to allow the user to hover of the tokens (method or variables) to show information about that method or variable which the user had set before.

I couldn't find any working live examples that have custom hover tooltip feature online. seemed almost non existing.

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

No branches or pull requests

2 participants