Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Reply
Developer
Posts: 781
Registered: ‎05-29-2012
My Device: see later
My Carrier: see later
Accepted Solution

Date field

How can I put a date field in blackberry qml?

I did a textfield, but dont find any inputtype as date.

Developer
Posts: 6,152
Registered: ‎07-05-2012
My Device: Playbook, Dev Alpha C, Z10 LE, Z30
My Carrier: Orange

Re: Date field

You need to use a Picker...

 

http://developer.blackberry.com/native/documentation/cascades/ui/pickers/datetimepicker.html


If you've been helped click on Like Button, if you've been saved buy the app. :smileyhappy:

Developer of stokLocker, Sympatico and Super Sentences.
Developer
Posts: 781
Registered: ‎05-29-2012
My Device: see later
My Carrier: see later

Re: Date field

can this be implemented in a way of popup.
Like have it textfield, on click i popup the datepicker. Cause to be fair datepicker is very ugly
Developer
Posts: 6,152
Registered: ‎07-05-2012
My Device: Playbook, Dev Alpha C, Z10 LE, Z30
My Carrier: Orange

Re: Date field

Yes it's possible to do your own custom control combining a TextField and Picker.
However to you it may be ugly but to your users it is what they are expecting so from a UIX perspective I would recommend sticking to the standard way of doing things.

If you've been helped click on Like Button, if you've been saved buy the app. :smileyhappy:

Developer of stokLocker, Sympatico and Super Sentences.