Platform-Specific Value Pickers
The DateBox provides the following controls for picking values.
Calendar
Available when the type option is set to "date" or "datetime".Rollers
Available when the type option is set to "date", "time" or "datetime".List
Available when the type option is set to "time".
By default, the picking control and its appearance vary depending on the platform. If you need to force the use of a certain control, specify the pickerType option. In the description of this option, you can find information about which control is the default one for a certain platform. The images above show how the controls look in a generic desktop browser.
For the List picker, you can specify the step of available time values in minutes using the interval option.
jQuery
JavaScript
$(function() { $("#dateBoxContainer").dxDateBox({ value: new Date(), type: "time", pickerType: "list", interval: 20 }); });
Angular
HTML
TypeScript
<dx-date-box [(value)]="date" type="time" pickerType="list" [interval]="20"> </dx-date-box>
import { DxDateBoxModule } from 'devextreme-angular'; // ... export class AppComponent { date: Date = new Date() } @NgModule({ imports: [ // ... DxDateBoxModule ], // ... })
See Also
Feel free to share demo-related thoughts here.
If you have technical questions, please create a support ticket in the DevExpress Support Center.
If you have technical questions, please create a support ticket in the DevExpress Support Center.
Thank you!
We appreciate your feedback.
We appreciate your feedback.