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

Add formatted tooltip text #40

Open
jaycincotta opened this issue Aug 1, 2020 · 1 comment
Open

Add formatted tooltip text #40

jaycincotta opened this issue Aug 1, 2020 · 1 comment

Comments

@jaycincotta
Copy link

Specifying typeOfWidget is insufficient. For example, I'm using this with election software and would like tooltips such as:

John Smith received an average rating of 4.5 stars among 1000 voters

In addition, the current implementation of titleText makes an assumption that typeOfWidget is a noun that can be pluralized by adding an 's'. This won't work in all cases. For example, the plural of "Cherry" is "Cherries"

The tooltip needs to be calculated dynamically. I suggest adding a new property that accepts a function:

tooltipFormater: is passed the current star rating and returns a string.

@fabinca
Copy link

fabinca commented Aug 23, 2023

I'll work on this

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