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

pn.Param widgets parameters change the widget type of numbers #1377

Closed
xavArtley opened this issue May 31, 2020 · 0 comments
Closed

pn.Param widgets parameters change the widget type of numbers #1377

xavArtley opened this issue May 31, 2020 · 0 comments
Labels
TRIAGE Default label for untriaged issues

Comments

@xavArtley
Copy link
Collaborator

If we use pn.Param to a param.Number without bounds the default widget is the spinner.
However setting some params (even an empty dict) for the Number parameters in pn.Param switch the widget from Spinner to Slider

class MRE(param.Parameterized):
    number = param.Number()
pn.Column(
    pn.Param(MRE(), parameters=['number'], show_name=False),
    pn.Param(MRE(), parameters=['number'], widgets={'number':{}}, show_name=False)
)

image

@xavArtley xavArtley added the TRIAGE Default label for untriaged issues label May 31, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
TRIAGE Default label for untriaged issues
Projects
None yet
Development

No branches or pull requests

1 participant