-
Notifications
You must be signed in to change notification settings - Fork 354
Feat/improve time picker behavior #1827
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
Changes from 30 commits
e24cf6b
73f6f86
83e95ab
061e0ba
fa125b7
7075d26
59d424e
5131054
954b10e
dc6e037
e0e7f08
24a6ff5
a6092dc
def65a2
f9c06a3
d461ca8
ace6564
c9015bd
236e685
6a3f689
a3ee168
81eb2f1
9e5b9af
a1b546c
d02fea0
549fdbc
48b748e
af8770f
e1b9c31
fffc8b9
2e5a8b9
32c842c
0651b79
7246898
27d2251
4238701
9d4899f
671ae70
d012544
abd0237
c742cad
71809fc
0d6c655
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -1134,12 +1134,15 @@ | |
| }, | ||
| "VaTimePicker": { | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Still relevant
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Still relevant |
||
| "props": { | ||
| "ampm": "Use 12-hours time format.", | ||
| "ampm": "Use 12-hours time format", | ||
| "hoursFilter": "Function that allows you to hide some specific hours", | ||
| "minutesFilter": "Function that allows you to hide some specific minutes", | ||
| "secondsFilter": "Function that allows you to hide some specific seconds", | ||
| "view": "View specifying which columns will be shown", | ||
| "periodUpdatesModelValue": "If user will change period it will automatically update model value. You can turn off it and am/pm switch will only change view." | ||
| "periodUpdatesModelValue": "If user will change period it will automatically update model value. You can turn off it and am/pm switch will only change view.", | ||
| "framed": "Adds borders to center of the picker", | ||
| "cellHeight": "Height of the time cell", | ||
| "visibleCellsCount": "Count of time cells to display" | ||
| }, | ||
| "events": {}, | ||
| "methods": {}, | ||
|
|
@@ -3855,6 +3858,14 @@ | |
| "title": "Default", | ||
| "text": "" | ||
| }, | ||
| "framed": { | ||
| "title": "Framed", | ||
| "text": "" | ||
| }, | ||
| "visibleCellsCount": { | ||
| "title": "Controlling the count of displayed cells", | ||
| "text": "For the better view need to set odd numbers" | ||
| }, | ||
| "readonlyAndDisabled": { | ||
| "title": "Readonly and disabled", | ||
| "text": "" | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| <template> | ||
| <h6>{{ value.getHours() }}:{{ value.getMinutes() }}:{{ value.getSeconds() }}</h6> | ||
|
|
||
| <va-time-picker v-model="value" framed /> | ||
| </template> | ||
|
|
||
| <script> | ||
| export default { | ||
| data () { | ||
| return { | ||
| value: new Date(), | ||
| } | ||
| }, | ||
| } | ||
| </script> |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| <template> | ||
| <h6>{{ value.getHours() }}:{{ value.getMinutes() }}:{{ value.getSeconds() }}</h6> | ||
|
|
||
| <div class="d-flex"> | ||
| <va-time-picker v-model="value" visible-cells-count="3" /> | ||
| <va-divider vertical /> | ||
| <va-time-picker v-model="value" visible-cells-count="8" /> | ||
| <va-divider vertical /> | ||
| <va-time-picker v-model="value" visible-cells-count="5" /> | ||
| <va-divider vertical /> | ||
| <va-time-picker v-model="value" visible-cells-count="9" /> | ||
| </div> | ||
| </template> | ||
|
|
||
| <script> | ||
| export default { | ||
| data () { | ||
| return { value: new Date() } | ||
| }, | ||
| } | ||
| </script> |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,4 @@ | ||
| .va-time-picker { | ||
| --va-time-picker-display: inline-flex; | ||
| --va-time-picker-height: 200px; | ||
| --va-time-picker-disabled-opacity: 0.4; | ||
| } |


Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here are some examples of this:
Clicked on
8hours,9hours are selected as the result.Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Update:
Now bug shows only when clicking a few times at the bottom.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Still relevant - you need to scroll down with am\pm mode active and select 8 hours.