You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Need to show some message like popover when onRowMouseEnter or onRowMouseLeave fired! #7096
It will be better to write your issue/comment in English, so more people can understand you.
And this means that more people can help you or benefit from your issue/comment.
See: #4897
changed the title [-]增加 table 的 onRowMouseEnter 和 onRowMouseLeave 事件渲染组件的支持[/-][+]Need to show some message like popover when onRowMouseEnter or onRowMouseLeave fired![/+]on Aug 5, 2017
I have been see those APIs in the new version, my question is about how to render the the message like Popover in onRowMouseEnter and onRowMouseLeave event handler !
@benjycui It's a good solution in some case. But if i have 10 columns or more, maybe the columns[n] is not present in current window, and in such case, we cannot see the Popover any more!
If there is no other solution, maybe we could use the Table's expandedRowRender to show the full record information.
But i think the most elegant solution is that the table's onRowMounseEnter API support render() . So developer can use this API to show anything they want in a easy way! It's a pretty common, natural idea to show message through the onRowMounseEnter, isn't it?
Activity
ant-design-bot commentedon Aug 5, 2017
It will be better to write your issue/comment in English, so more people can understand you.
And this means that more people can help you or benefit from your issue/comment.
See: #4897
[-]增加 table 的 onRowMouseEnter 和 onRowMouseLeave 事件渲染组件的支持[/-][+]Need to show some message like popover when onRowMouseEnter or onRowMouseLeave fired![/+]ddcat1115 commentedon Aug 5, 2017
In fact, we have supported it...
https://github.com/react-component/table#api search by
onRowMouseEnterandonRowMouseLeavejzoe commentedon Aug 6, 2017
I have been see those APIs in the new version, my question is about how to render the the message like Popover in
onRowMouseEnterandonRowMouseLeaveevent handler !benjycui commentedon Aug 7, 2017
So, the Popover is for the whole row or just one cell?
jzoe commentedon Aug 7, 2017
One cell Popover can write in column's render API, but i have never seen how to write a Popover for the whole row!
benjycui commentedon Aug 7, 2017
Just write in columns's render API, and use
visibleto control it.jzoe commentedon Aug 7, 2017
@benjycui It's a good solution in some case. But if i have 10 columns or more, maybe the
columns[n]is not present in current window, and in such case, we cannot see the Popover any more!If there is no other solution, maybe we could use the Table's
expandedRowRenderto show the full record information.benjycui commentedon Aug 7, 2017
Fixed column.
jzoe commentedon Aug 8, 2017
But i think the most elegant solution is that the table's
onRowMounseEnterAPI support render() . So developer can use this API to show anything they want in a easy way! It's a pretty common, natural idea to show message through theonRowMounseEnter, isn't it?benjycui commentedon Aug 8, 2017
It is not elegant at all. Event handle is not a renderer. Think in React.
It's impossible to wrap table row with Popover now, unless Table expose new API cc @yesmeck
So I think the only work around is #7096 (comment) now.
jzoe commentedon Aug 8, 2017
Look forward the new API, thanks for your awesome work!! @benjycui @yesmeck
yesmeck commentedon Aug 8, 2017
I like this idea react-component/table#139, so that we don't need defined so many
onRowXxxxevents.