Skip to content

Add initWidth argument to colDef#425

Draft
nteetor wants to merge 1 commit into
glin:mainfrom
nteetor:main
Draft

Add initWidth argument to colDef#425
nteetor wants to merge 1 commit into
glin:mainfrom
nteetor:main

Conversation

@nteetor
Copy link
Copy Markdown

@nteetor nteetor commented May 25, 2026

Description

This PR adds an initWidth column to the colDef function. As described in #223 and #374 there is currently no way to specify a column's initial width and allow column resizing. I adjusted the javascript column logic to set width to initWidth, if specified. The behavior of the other width arguments remain unchanged.

TODO

  • Add testing, confirm this doesn't break resizing
  • Potentially revert roxygen version (looks like latest version got installed when I setup the project)

Comment thread srcjs/columns.js
col.headerVAlign = col.headerVAlign || 'top'

const { width, minWidth, maxWidth } = col
const { width, initWidth, minWidth, maxWidth } = col
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change can be removed.

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

Successfully merging this pull request may close these issues.

1 participant