-
Notifications
You must be signed in to change notification settings - Fork 76
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
Make hcTooltip support conditional expressions #2079
Comments
Note: This is possible currently by binding to the Fabric.Cashmere/projects/cashmere/src/lib/instance-switcher/instance-switcher.component.html Lines 64 to 65 in f0c1ddd
Fabric.Cashmere/projects/cashmere/src/lib/instance-switcher/instance-switcher.component.ts Lines 176 to 179 in f0c1ddd
|
Oh, brilliant. I'll use that as a workaround for now. |
Yup, you nailed it @bskeen - using |
change trigger to none for tooltips with empty content closes HealthCatalyst#2079
🎉 This issue has been resolved in version 14.1.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Describe your idea
It would be cool if
[hcTooltip]
could be conditionally rendered.What problem are you trying to solve?
We have situations where a tooltip is needed in some states but not others. It's natural to try to do:
[hcTooltip]="shouldShowTooltip ? 'You can't do that right now.' : null"
Or
[hcTooltip]="shouldShowTooltip ? 'You can't do that right now.' : undefined"
But in both cases, an empty tooltip is still shown (see below). It would be great if the tooltip only showed when there was content in it.
Additional context
The text was updated successfully, but these errors were encountered: