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

Display custom text when hovered on a cell #1562

Closed
narendravenkata opened this issue Aug 18, 2017 · 9 comments
Closed

Display custom text when hovered on a cell #1562

narendravenkata opened this issue Aug 18, 2017 · 9 comments

Comments

@narendravenkata
Copy link

Currently I am using headerText to display custom text when hovered on table header, in the same way is there anything I can use to display custom text when hovered on a particular cell.

@AllenFang
Copy link
Owner

HI @narendravenkata we can only use columnTitle to enable the title on cell and default value is cell value. I can support the custom title on specified cell, thanks

@narendravenkata
Copy link
Author

issue

Here I want to display error message when hovered on cell with red color and similarly for other colors

@AllenFang
Copy link
Owner

ok, got it, I will implement in this week, BTW, all the tooltip in react-bootstrap-table is HTML title attribute.

AllenFang added a commit that referenced this issue Aug 22, 2017
@AllenFang
Copy link
Owner

Fixed on v4.0.2, check this to see how to custom the title by cell or row. Thanks

@narendravenkata
Copy link
Author

@AllenFang Thanks Allen for your quick update on the issue, it is good if we can have rowIdx and columnIdx as well so we can know the exact cell number. is that possible?

@AllenFang
Copy link
Owner

is that possible?

sure, I can fix it in next version

@AllenFang AllenFang reopened this Aug 26, 2017
@welchn
Copy link

welchn commented Sep 1, 2017

Hi Allen, is there any plan to support a richer variety of tooltip? Perhaps allow styles on it, allow HTML or react components to be embedded, etc.? We would definitely have use cases for this flexibility, and am curious if you think this may be supported in the future. Thank you.

@AllenFang
Copy link
Owner

HI @welchn, as I mention in README, react-bootstrap-table already stop feature development and will implement next generation of react-bootstrap-table, but your idea is good, maybe you can go to https://github.com/react-bootstrap-table/react-bootstrap-table2 and discuss with us. Anyway, if you really want a richer tooltip, PR is welcome, thanks

@AllenFang
Copy link
Owner

@narendravenkata the row index and column was passed as third and fourth argument on v4.0.3

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