question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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

See original GitHub issue

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

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:2
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

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

suggest add use doc

0reactions
azeemaleem149commented, Feb 13, 2021

`const columns = [

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

}`

Read more comments on GitHub >

github_iconTop Results From Across the Web

Sort a table by clicking its headers - HTML DOM
The sortColumn(index) function mentioned above will sort all rows by given column index . To do so: We can use the Array 's...
Read more >
How to Make Click To Sort Column Headers in your Microsoft ...
In this video, I'm going to teach you how to create a one- click method to sort by a specific field ( column...
Read more >
Trying to sort the table column by clicking the header of the table
Here's the table sorter function I use: Working demo: http://jsfiddle.net/gilly3/DYYqv/ function sortTable(table, cellIndex, ...
Read more >
Excel: How to move (swap) columns by dragging and other ways
Learn how to swap columns in Excel tables with drag-and-drop and other ... click the heading of the first column you need to...
Read more >
Clear or remove a filter - Microsoft Support
If you don't want someone to filter a particular column, you can consider hiding it. Clear all the filters in a worksheet. Click...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found