fixed-data-table-2
fixed-data-table-2 copied to clipboard
Column Resizer Double Click Listener
Description
Added support to pass a callback to listen to double click event of column resizer knob. This can be very useful to enable excel like autofit columns in the table.
Motivation and Context
In Excel we have a very simple but cool ability to autofit the columns based on its contents, adding a listener for double click event on column resizer can help in implementing the same excel like autofit column feature in the table.
How Has This Been Tested?
Currently this has been tested locally in my system. Open to add test cases in any form wherever required.
Screenshots (if appropriate):
Types of changes
- [ ] Bug fix (non-breaking change which fixes an issue)
- [x] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing functionality to change)
Checklist:
- [x] My code follows the code style of this project.
- [x] My change requires a change to the documentation.
- [x] I have updated the documentation accordingly.
- [x] I have read the CONTRIBUTING document.
@singharpit94 , nice to see you again and thanks for the PR. This looks good.
It'd be neat if you could add a new example for this, maybe something like the auto resizer which you've shown in the screenshot.
Currently this has been tested locally in my system. Open to add test cases in any form wherever required.
It'd be a good idea to add a simple test case which ensures that double clicking on the resizer for a column actually triggers the double click handler for the said column.
Let me know if you need help with any of these.
@singharpit94, hey any updates on this?
@singharpit94 , friendly ping.
Let me know if there's anything to be done from our side.