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
Basically, I wish to sort by the clicked column instead of selecting the column. The sorting already works with the <Menu> component (similar to the table sort example in the docs), but the requirement is that a simple click on the column header cell must work as well.
As described in the linked SO question, I'm customizing the columnHeaderCellRenderer of each Column and then providing a simple div with onClick as the nameRenderer:
And this does not work, clicking the column header cell still selects the column. As an experiment, when I use nameRenderer={() => <EditableName name={colName} />} that component works correctly. I don't understand why a simple div's onClick isn't working.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I've asked this question on StackOverflow, so far to no avail.
Basically, I wish to sort by the clicked column instead of selecting the column. The sorting already works with the
<Menu>
component (similar to the table sort example in the docs), but the requirement is that a simple click on the column header cell must work as well.As described in the linked SO question, I'm customizing the
columnHeaderCellRenderer
of eachColumn
and then providing a simplediv
withonClick
as thenameRenderer
:And this does not work, clicking the column header cell still selects the column. As an experiment, when I use
nameRenderer={() => <EditableName name={colName} />}
that component works correctly. I don't understand why a simplediv
'sonClick
isn't working.Beta Was this translation helpful? Give feedback.
All reactions