Skip to content

Commit

Permalink
docs: fix time-picker step property API docs [skip ci] (#301) (#304)
Browse files Browse the repository at this point in the history
Clarifies the description of the `step` property in vaadin-date-time-picker and vaadin-time-picker components to make it clear that it's a number of seconds between steps, not the number of steps in a day.

Related #254

Co-authored-by: Viktor Lukashov <[email protected]>
  • Loading branch information
vaadin-bot and Viktor Lukashov authored May 3, 2021
1 parent 7ca817f commit 08e7673
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -278,8 +278,8 @@ class DateTimePickerElement extends ElementMixin(ThemableMixin(PolymerElement))
},

/**
* Specifies the number of valid intervals in a day used for
* configuring the items displayed in the time selection box.
* Defines the time interval (in seconds) between the items displayed
* in the time selection box. The default is 1 hour (i.e. `3600`).
*
* It also configures the precision of the time part of the value string. By default
* the component formats time values as `hh:mm` but setting a step value
Expand Down
4 changes: 2 additions & 2 deletions packages/vaadin-time-picker/src/vaadin-time-picker.js
Original file line number Diff line number Diff line change
Expand Up @@ -280,8 +280,8 @@ class TimePickerElement extends ElementMixin(ControlStateMixin(ThemableMixin(Pol
},

/**
* Specifies the number of valid intervals in a day used for
* configuring the items displayed in the selection box.
* Defines the time interval (in seconds) between the items displayed
* in the time selection box. The default is 1 hour (i.e. `3600`).
*
* It also configures the precision of the value string. By default
* the component formats values as `hh:mm` but setting a step value
Expand Down

0 comments on commit 08e7673

Please sign in to comment.