DateTimePickerMode

Since: BlackBerry 10.0.0

#include <bb/cascades/DateTimePickerMode>

Represents the modes used for the DateTimePicker.

Use the DateTimePickerMode::Type enum values to set a specific mode for the DateTimePicker. The default mode is DateTimePickerMode::Date.

Here's an example of how to specify the DateTimePickerMode, in QML.
 DateTimePicker {
     mode: DateTimePickerMode.Time
 }
Here's an example of setting the mode in C++:
 DateTimePicker* dateTimePicker::create()
         .mode(DateTimePickerMode::Time);
It's also possible to change the mode anytime during runtime:
 dateTimePicker->setMode(DateTimePickerMode::Date);


Overview

Public Types Index

enum Type

Time 0, Date, DateTime, Timer

Public Types

Type

Different modes available for the DateTimePicker:

Since:

BlackBerry 10.0.0

Time 0

Shows two columns with hours and minutes.

Date

Shows three columns with day, month and year (default).

Since:

BlackBerry 10.0.0

DateTime

Shows three columns with day, hours and minutes.

Since:

BlackBerry 10.0.0

Timer

Shows three columns with hours, minutes and seconds.

Since:

BlackBerry 10.0.0

Last modified: 2014-09-30



Got questions about leaving a comment? Get answers from our Disqus FAQ.

comments powered by Disqus