-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Made autoSizeColumns() to work with cells headers #855
Conversation
…th based on the header as well as the cell. - Moved field definition from the ColDef interface to the AbstractColDef interface since we will need to access it. - Converted the headerElements, inside the headerContainer, to be an object so that we can find a specific element by id. This is exactly the same functionality that is used in the RendererRow class. - Added a getCellForCol function, inside the headerContainer, so that we can get the header html element for a specific column. - Added a getHeaderCelForColumn, inside the headerRnderer, to get a specific html element for a column. This is exactly the same functionality that is used in the rowRenderer class.
…l or not. If it is null, it will not generate the clone to avoid errors.
interesting. thanks. will take a look when i get a chance. |
+1 Yes Please :-) |
Any update on this? Seems like an obvious feature to have. |
Any update on this? Seems like an obvious feature to have. |
@ceolter when you are planning to release next version ? |
it didn't make release v5 :( i'm hoping to look at this tomorrow, before i go on my holidays the next day :( . . . . this is probably the feature i want most in the grid from all the small requested features. |
i have now implemented this. will be releasing later today. i didn't take the PR as a lot of code has changed (around how the headers work) since this PR was created. |
Added support, inside the autoWidthCalculator, to calculate the width based on the header as well as the cell.