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

表格点击单行添加背景色 #4135

Closed
xtznhzxdev opened this issue Dec 5, 2016 · 3 comments
Closed

表格点击单行添加背景色 #4135

xtznhzxdev opened this issue Dec 5, 2016 · 3 comments
Labels

Comments

@xtznhzxdev
Copy link

单击表格第一行,该行背景色比如为蓝色,下次点击第二行,第二行背景色蓝色,第一行背景色蓝色取消,请问如何操作?不知道源码移动到某行上,背景色改变是如何操作的?

@benjycui
Copy link
Contributor

benjycui commented Dec 5, 2016

onRowClick 时记录需要高亮的行,在 rowClassName 给对应的行加 className

@benjycui benjycui closed this as completed Dec 5, 2016
@benjycui
Copy link
Contributor

benjycui commented Dec 5, 2016

Ant Design team use GitHub issues to trace bugs or discuss plans of Ant Design. So, please don't ask usage questions here. You can try to ask questions in Stack Overflow or Segment Fault, then apply tag antd and react to your questions.

You should read documentation & FAQ and search issues before ask a question, THX!

It will be better if you read smart questions(提问的智慧).

@liu2080019
Copy link

liu2080019 commented Nov 8, 2017

@benjycui I want to highlight rows that I selected,but I can't get the event target in rowSelection functions。

rowClassName works...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants