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

Expose scroll #383

Closed
jsignell opened this issue Apr 15, 2019 · 1 comment
Closed

Expose scroll #383

jsignell opened this issue Apr 15, 2019 · 1 comment
Labels
type: enhancement Minor feature or improvement to an existing feature
Milestone

Comments

@jsignell
Copy link
Member

To get scroll in a panel object you currently have to use css classes. This looks like:

import panel as pn

css = """
.widget-box {
  overflow: scroll;
}
"""

pn.extension(raw_css=[css])

pn.Column(
    pn.widgets.FloatSlider(name='Number', width=200, ),
    pn.widgets.Select(name='Fruit', options=['Apple', 'Orange', 'Pear']),
    pn.widgets.Button(name='Run'),
css_classes=['widget-box'], width=100, height=50, background='#f0f0f0')

I propose we add overflow as a kwarg in all panel objects or possibly just all pane and layout options.

@philippjfr philippjfr added the type: enhancement Minor feature or improvement to an existing feature label Apr 15, 2019
@philippjfr
Copy link
Member

I'm +1 on this, I think there are generally useful options which could be implemented in CSS and exposed as parameters on the Layoutable baseclass.

@philippjfr philippjfr added this to the v0.7.0 milestone Nov 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement Minor feature or improvement to an existing feature
Projects
None yet
Development

No branches or pull requests

2 participants