Skip to content
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

TextAreaInput - implementing/dropping cols param? #7754

Open
thuydotm opened this issue Mar 3, 2025 · 0 comments
Open

TextAreaInput - implementing/dropping cols param? #7754

thuydotm opened this issue Mar 3, 2025 · 0 comments
Milestone

Comments

@thuydotm
Copy link
Collaborator

thuydotm commented Mar 3, 2025

ALL software version info

Panel 1.6.2a1

Description of expected behavior and the observed behavior

The Panel docs says cols is the number of columns in the text input field, which is quite confusing. The Bokeh docs makes it clearer, cols specifies the width of the text area (in average character width). However, instantiating different TextAreaInput widgets with different cols doesn't seem to make any differences. Looking at the code, not sure if cols got implemented actually. As we allow setting the width of widget with width param. How about dropping the cols entirely?

Complete, minimal, self-contained example code that reproduces the issue

import panel as pn

# looks like we also allow negative/0 cols
pn.widgets.TextAreaInput(cols=-1).servable()
pn.widgets.TextAreaInput(cols=0).servable()

pn.widgets.TextAreaInput(cols=1).servable()
pn.widgets.TextAreaInput(cols=100).servable()
pn.widgets.TextAreaInput(cols=200).servable()
@thuydotm thuydotm added the TRIAGE Default label for untriaged issues label Mar 3, 2025
@philippjfr philippjfr removed the TRIAGE Default label for untriaged issues label Mar 11, 2025
@philippjfr philippjfr added this to the v1.6.2 milestone Mar 11, 2025
@philippjfr philippjfr modified the milestones: v1.6.2, v1.6.3 Mar 30, 2025
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

No branches or pull requests

2 participants