-
Notifications
You must be signed in to change notification settings - Fork 4.6k
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
Template support for Tooltip #3496
Comments
This is not supported, changing the title according to it. |
I would love this feature as well. |
+1 |
4 similar comments
+1 |
+1 |
+1 |
+1 |
Set escape to false, and it will render html: |
+1 |
This won't work if your tooltip contains an |
+1 |
@speti43 it does work, what you have written, but it won't apply css class next to HTML element PrimeNG please consider doing it in the future |
+1 |
3 similar comments
+1 |
+1 |
+1 |
Hi, So sorry for the delayed response! Improvements have been made to many components recently, both in terms of performance and enhancement. Therefore, this improvement may have been developed in another issue ticket without realizing it. You can check this in the documentation. If there is no improvement on this, can you reopen the issue so we can include it in our roadmap? Best Regards, |
Hi, We need to add dynamic components into the ptooltip component. For instance, in my case, i need to add a custom component into the tooltip, like that : but it's just "pasted" into the tooltip. @mertsincan is it possible to reopen the issue ? |
+1 |
I used the overlayPanel component as an alternative for pTooltip and it does have template support. |
Trying to port from https://ng-bootstrap.github.io/#/components/tooltip/api and the template support is def a nice feature to have |
PR Updated and ready to merge! |
* Tooltip optionally take a TemplateRef * Working! * Use content variable * Add template documentation * Update prop docs * Change to const * Run code formatting * Remove duplicate CommonModule * Remove propsdoc * Run apidoc * ChangeDetectorRef not actually being used * Call this just template now * changeDetector not being used --------- Co-authored-by: Justin White <[email protected]>
I am currently using pTooltip and before that I used tooltip from ngx-bootstrap. I used to make templates and used them in my tooltip like this :
Here it displays
[Object object]
. I wonder if it is possible to display what is actually inside my template.The text was updated successfully, but these errors were encountered: