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

missing/incorrect param->widget mappings #228

Closed
xavArtley opened this issue Jan 30, 2019 · 0 comments · Fixed by #999
Closed

missing/incorrect param->widget mappings #228

xavArtley opened this issue Jan 30, 2019 · 0 comments · Fixed by #999
Labels
type: bug Something isn't correct or isn't working
Milestone

Comments

@xavArtley
Copy link
Collaborator

xavArtley commented Jan 30, 2019

Currently only a subset of the parameters for param module are mapped to a widget.
The mapping is the following:

    _mapping = {
        param.Action:         Button,
        param.Parameter:      LiteralInput,
        param.Dict:           LiteralInput,
        param.Selector:       Select,
        param.ObjectSelector: ObjectSelector,
        param.FileSelector:   FileSelector,
        param.Boolean:        Checkbox,
        param.Number:         FloatSlider,
        param.Integer:        IntSlider,
        param.Range:          RangeSlider,
        param.String:         TextInput,
        param.ListSelector:   MultiSelect,
        param.Date:           DatetimeInput,
    }

If a parameter is not mapped then it will be mapped to it's first super class found in _mapping
all params inherit from param.Parameter so the widget affected is LiteralInput

This issue is opened to discuss missing mapping, not relevant or wrong mapping.

  • on gitter @philippjfr suggest mapping param.DateRange to pn.widgets.DateRangeSlider
  • param.Filename is not mapped and LiteralInput lead to a bad behavior
@philippjfr philippjfr added this to the v0.4.1 milestone Feb 19, 2019
@philippjfr philippjfr modified the milestones: v0.4.1, v0.5.1 Jul 25, 2019
@philippjfr philippjfr added the type: bug Something isn't correct or isn't working label Jul 25, 2019
@philippjfr philippjfr modified the milestones: v0.6.1, v0.7.0, v0.7.1 Nov 8, 2019
@philippjfr philippjfr modified the milestones: v0.7.1, v0.8.0 Jan 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't correct or isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants