Skip to content

Commit

Permalink
Update DateRangeSlider.step documentation (#5510)
Browse files Browse the repository at this point in the history
  • Loading branch information
philippjfr authored Sep 14, 2023
1 parent 65d0a5b commit 8080eec
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
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

0 comments on commit 8080eec

Please sign in to comment.