Skip to content

Commit

Permalink
fix: Step in DateSlider (#7353)
Browse files Browse the repository at this point in the history
  • Loading branch information
hoxbro authored Oct 3, 2024
1 parent 3e06a45 commit 336b995
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion examples/reference/widgets/DateSlider.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"* **``end``** (date or datetime): The range's upper bound\n",
"* **``value``** (date or datetime): The selected value as a datetime type\n",
"* **``value_throttled``** (datetime): The selected value as a datetime type throttled until mouseup\n",
"* **``step``** (number): The selected step i the slider in milliseconds\n",
"* **``step``** (integer): The selected step i the slider in days\n",
"\n",
"##### Display\n",
"\n",
Expand Down
4 changes: 2 additions & 2 deletions panel/widgets/slider.py
Original file line number Diff line number Diff line change
Expand Up @@ -279,8 +279,8 @@ class DateSlider(_SliderBase):
as_datetime = param.Boolean(default=False, doc="""
Whether to store the date as a datetime.""")

step = param.Number(default=None, doc="""
The step parameter in milliseconds.""")
step = param.Integer(default=1, bounds=(1, None), doc="""
The step parameter in days.""")

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

0 comments on commit 336b995

Please sign in to comment.