-
Notifications
You must be signed in to change notification settings - Fork 839
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
[EuiBasicTable] add nameTooltip
API
#7963
Comments
I started implementing this in #8273 and I have a question regarding the actual API. (I went and read thru all previous discussion I could find). I understand the proposed API is flexible enough while keeping things under control. And I believe it's also decoupled from the implementation. If we use nameTooltip: {
content: 'Their mascot is Octokitty', // passed to EuiIconTip's `content` [same]
icon: 'questionInCircle', // passed to EuiIconTip's `type`
iconProps: { color: 'subdued' }, // passed to EuiIconTip's `iconProps` [same]
tooltipProps: { position: 'bottom' }, // spreaad to EuiIconTip's subset of the EuiToolTip props
}, I think this is good. But I'm also thinking whether things would be simpler if the shape of The implementation would be simpler, there would be no need for a new shape/type, but it would be somehow bound to Is this a silly idea? What do you think? |
Definitely not a silly idea, but (unfortunately) it's a bit of a question of consistency rather than optimal naming at this point. Additionally, my 2c is I think a custom object structure is more flexible in terms of typing than doing something like |
this is the answer I was looking for — there's really no point in introducing a new API just for the sake of a simpler implementation, I will refactor back… @cee-chen thanks for chiming in 🙂 |
This feature request is based on this comment and suggests adding a new
nameTooltip
API forEuiBasicTable
.Example:
The text was updated successfully, but these errors were encountered: