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

Selection range slider #1356

Merged
merged 5 commits into from May 17, 2017
Merged

Conversation

@jasongrout
Copy link
Member

@jasongrout jasongrout commented May 17, 2017

Fixes #760. CC @jdemeyer.

jasongrout added 5 commits May 17, 2017
For this widget, the index, label, and value attributes encode the maximum and minimum selected element, rather than all selected elements.

Fixes jupyter-widgets#760.
@jasongrout
Copy link
Member Author

@jasongrout jasongrout commented May 17, 2017

Example:

import datetime
from ipywidgets import SelectionRangeSlider
dates = [datetime.date(2015,i,1) for i in range(1,13)]
options = [(i.strftime('%b'), i) for i in dates]
SelectionRangeSlider(description="Dates (2015)", options=options, index=(0,4))

screen shot 2017-05-17 at 12 41 03 pm

Loading

@jasongrout
Copy link
Member Author

@jasongrout jasongrout commented May 17, 2017

Loading

@jasongrout jasongrout merged commit f8c482e into jupyter-widgets:master May 17, 2017
1 check passed
Loading
@blink1073
Copy link
Contributor

@blink1073 blink1073 commented May 17, 2017

Nice!

Loading

@jasongrout jasongrout mentioned this pull request May 17, 2017
@jasongrout jasongrout deleted the SelectionRangeSlider branch May 18, 2017
@jasongrout jasongrout added this to the 7.0 milestone Jul 14, 2017
@jasongrout jasongrout added this to the 7.0 milestone Jul 14, 2017
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 12, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

2 participants