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

Update DateRangeSlider.step documentation #5510

Merged
merged 1 commit into from
Sep 14, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions examples/reference/widgets/DateRangeSlider.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"\n",
"* **``start``** (datetime): The range's lower bound\n",
"* **``end``** (datetime): The range's upper bound\n",
"* **``step``** (int): Step in milliseconds\n",
"* **``step``** (int): Step in days\n",
"* **``value``** (tuple): Tuple of upper and lower bounds of the selected range expressed as datetime types\n",
"* **``value_throttled``** (tuple): Tuple of upper and lower bounds of the selected range expressed as datetime types throttled until mouseup\n",
"\n",
Expand Down Expand Up @@ -60,7 +60,7 @@
" name='Date Range Slider',\n",
" start=dt.datetime(2017, 1, 1), end=dt.datetime(2019, 1, 1),\n",
" value=(dt.datetime(2017, 1, 1), dt.datetime(2018, 1, 10)),\n",
" step=24*3600*2*1000\n",
" step=2\n",
")\n",
"\n",
"date_range_slider"
Expand Down
2 changes: 1 addition & 1 deletion panel/widgets/slider.py
Original file line number Diff line number Diff line change
Expand Up @@ -670,7 +670,7 @@ class DateRangeSlider(_SliderBase):
The upper bound.""")

step = param.Number(default=1, doc="""
The step size. Default is 1 millisecond.""")
The step size in days. Default is 1 day.""")

format = param.String(default=None, doc="""
Datetime format used for parsing and formatting the date.""")
Expand Down
Loading