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

Table, I want to click table header column sort,but column not click method #9271

Closed
hengkx opened this issue Feb 6, 2018 · 5 comments
Closed
Assignees

Comments

@hengkx
Copy link
Member

hengkx commented Feb 6, 2018

What problem does this feature solve?

I want to click table header column sort,but column not click method.Now sort click area very small.

What does the proposed API look like?

Column add onClick method

@ant-design-bot
Copy link
Contributor

Hello @hengkx, we 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 on Stack Overflow or Segment Fault, then apply tag antd and react to your question.

@yesmeck
Copy link
Member

yesmeck commented Feb 6, 2018

column[onHeaderCell]

@hengkx
Copy link
Member Author

hengkx commented Feb 6, 2018

{
        title: '序号',
        dataIndex: 'id',
        width: '68px',
        fixed: 'left',
        onHeaderCell: (column) => {
          return {
            onClick: () => {
              console.log('onClick');
            }
          };
        }
      }

suggest add use doc

@huseyinozgul
Copy link

How to change column's title in onClick event

@azeemaleem149
Copy link

azeemaleem149 commented Feb 13, 2021

`const columns = [

{
	title: 'Name',
	dataIndex: 'name',
	render:text=><Link to='/detail'>{text}</Link>
}

}`

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

No branches or pull requests

5 participants