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

tooltip on h:outputText or b:dataTableColumn #646

Open
chongma opened this issue Mar 1, 2017 · 6 comments
Open

tooltip on h:outputText or b:dataTableColumn #646

chongma opened this issue Mar 1, 2017 · 6 comments

Comments

@chongma
Copy link
Collaborator

chongma commented Mar 1, 2017

i am trying to put a tooltip on a value in a cell inside a dataTable. i cannot see any way to do this without rendering a component like inputText or badge. i just want to be able to hover over the cell or div and see a tooltip.
i even tried <div data-toggle="tooltip" data-container="body" data-original-title="#{item.tooltip}" title="">content</div> but this seems to have no effect whereas this should work with bootstrap?

@stephanrauh
Copy link
Collaborator

Most likely, the div approach works if there's at least one BootsFaces component with tooltip on the same page. That's because we need to add some JavaScript to create the tooltip, and we simply can't know about your div.

Come to think of it, this is a use case we didn't implement yet. Both adding tooltips to the data table and creating a new component like <b:div /> sounds like a good idea. Let us ponder about it a while.

@chongma
Copy link
Collaborator Author

chongma commented Mar 12, 2017

i added a tooltip to a b:badge with a functioning tooltip on the same page but the div method still does not work. maybe bootstrap is not configured in a standard way?

@chongma
Copy link
Collaborator Author

chongma commented Apr 22, 2017

a b:outputText would be good. because then it could have a label attribute. sometimes when drawing a form there is a field which is just for information and it is annoying to have to add a label manually. it could also have a tooltip

@stephanrauh stephanrauh removed their assignment Sep 24, 2017
@stephanrauh
Copy link
Collaborator

I think we can close the ticket. It's always possible to use JavaScript if everything else fails.

@geopossachs geopossachs self-assigned this May 12, 2020
@geopossachs
Copy link
Collaborator

a b:outputText would be good. because then it could have a label attribute. sometimes when drawing a form there is a field which is just for information and it is annoying to have to add a label manually. it could also have a tooltip

@stephanrauh i think a b:outputText is a really good idea for 1.6. I often need a output and a label in my forms

@geopossachs geopossachs removed their assignment May 12, 2020
@stephanrauh stephanrauh reopened this May 12, 2020
@stephanrauh
Copy link
Collaborator

OK. Let's re-open the ticket!

@geopossachs geopossachs added this to the v1.6.0 milestone May 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants