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

NNCheckboxes Hover/Tooltip field? #98

Closed
seanmcne opened this issue Sep 13, 2022 · 11 comments
Closed

NNCheckboxes Hover/Tooltip field? #98

seanmcne opened this issue Sep 13, 2022 · 11 comments

Comments

@seanmcne
Copy link

@MscrmTools would it be possible to add an optional hover tooltip for checkboxes? The idea would be to select a field on the entity to show when hovering over the checkbox value (maybe a description field for the given label displayed).

@MscrmTools
Copy link
Owner

Should be possible.
But that would mean that all checkboxes would have the same tooltip, am I correct in my understanding?

@seanmcne
Copy link
Author

My thought was I am showing 10 categories for check boxes, each of those 10 records (categories) has a 'description' field on them. For each category checkbox when I hover that specific category would show it's records 'description' value in the tooltip.

@MscrmTools
Copy link
Owner

ah ok! Totally makes sense! I will add this capability

@MscrmTools
Copy link
Owner

Is it what you are after?
image

Tooltip text comes from attribute "Aide" in the screenshot below
image

@seanmcne
Copy link
Author

Oh yes that looks about right, is that already a feature and I just didn't figure it out? :)

@MscrmTools
Copy link
Owner

No, I'm currently implementing it and wanted to be sure it was answering your need

MscrmTools added a commit that referenced this issue Sep 15, 2022
@MscrmTools
Copy link
Owner

Available in latest version

@seanmcne
Copy link
Author

So far the control is working fine for me in the update, but I'm not able to get the tooltips to render/show - I have the attribute selected, any quick tips or ideas to debug it in the browser? If I look at the network tab I see the requests going to the other entity but it doesn't include the attribute for the tooltip, I'm going to republish again and make sure everything looks updated but just curious if you ran into anything like this.

@MscrmTools
Copy link
Owner

MscrmTools commented Sep 28, 2022

Does the view defined for the subgrid contains the tooltip column?

@seanmcne
Copy link
Author

@MscrmTools I have found it work in some cases but not all - I will see if I can figure out when it's not working and if it's an error on my end or not. Thanks again for adding this so quickly!

@MscrmTools
Copy link
Owner

Please check the view definition you are using in the subgrid. It needs the columns for the tooltip. Otherwise, tooltip won't displayed

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