This topic describes best practices for using the Windows Library for JavaScript TimePicker control. For more information about adding a TimePicker to your app, see Quickstart: Adding a TimePicker.
User experience guidelines
These are recommended practices for using Windows Library for JavaScript TimePicker controls.
| Practice | Description |
|---|---|
|
Use a TimePicker to enable the selection of times when you need to use space efficiently. |
This practice provides the following benefits:
For more information, see Quickstart: Adding a TimePicker. |
|
If you don't want to display the AM and PM element, hide it by using CSS. |
This practice provides the following benefits:
For more information, see Quickstart: Adding a TimePicker. |
|
The TimePicker can be configured to display minute values in 15-minute increments. |
This practice provides the following benefits:
For more information, see Quickstart: Adding a TimePicker. |
|
Consider displaying the TimePicker vertically. |
This practice provides the following benefits:
For more information, see Quickstart: Adding a TimePicker. |
|
Don't use a TimePicker to display the current time. It's a static display that's meant to be set by the user. |
Avoiding this practice ensures that your users don't expect a real-time display. |
Related topics
Build date: 11/29/2012