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

remove dependencies hack #3

Open
romainfrancois opened this issue Feb 26, 2024 · 1 comment
Open

remove dependencies hack #3

romainfrancois opened this issue Feb 26, 2024 · 1 comment
Labels
help wanted ❤️ we'd love your help!

Comments

@romainfrancois
Copy link
Contributor

auto() has :

  [...]
  # This is a hack because I currently don't know how to inject the
  # dependencies otherwise
  bslib::tooltip("", "")
}

which is a bit clunky. How else can the dependencies needed for bslib::tooltip() be added ?

@romainfrancois romainfrancois added the help wanted ❤️ we'd love your help! label Feb 26, 2024
@romainfrancois
Copy link
Contributor Author

The issue is that because this 📦 works by setting the text hook to inject the html in the text, as opposed to be auto printed as in normal chunks, the dependencies are not automatically added, but I don't know how to add them.

So the hack is to add an empty tooltip.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted ❤️ we'd love your help!
Projects
None yet
Development

No branches or pull requests

1 participant