-
Notifications
You must be signed in to change notification settings - Fork 428
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
Add column sizing mode to data editor #4037
Add column sizing mode to data editor #4037
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
All contributors have signed the CLA ✍️ ✅ |
for more information, see https://pre-commit.ci
…thub.com/kacper-paszkowski-airspace-intelligence/marimo into kp/add-column-sizing-mode-to-data-editor
I have read the CLA Document and I hereby sign the CLA |
@@ -57,6 +57,7 @@ export const DataEditorPlugin = createPlugin<Edits>("marimo-data-editor", { | |||
]), | |||
) | |||
.nullish(), | |||
columnSizingMode: z.enum(["fit", "auto"]).default("fit"), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we default to auto?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wanted to maintain previous behavior as default
fit
- columns are resized to fit the current view
auto
- columns are resized based on content
if it's unclear, naming/default behavior is subject to change
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We try to have opinionated but good defaults. If you think auto is better, then it's ok to make the change instead of keeping the default, since it's still under experimental.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the improvement! One suggestion but I'll defer to you which you think is better
🚀 Development release published. You may be able to view the changes at https://marimo.app?v=0.11.18-dev23 |
📝 Summary
fix for issue #4034
🔍 Description of Changes
column_sizing_mode
toexperimental_data_editor
📋 Checklist
📜 Reviewers
@mscolnick as you're the main contributor in that component