Guest User

Untitled

a guest
May 7th, 2012
36
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. datepicker and timepicker modal dialog not showing set and cancel buttons
  2. var picker = Ti.UI.createPicker({
  3.  
  4. type: Titanium.UI.PICKER_TYPE_DATE,
  5. value: new Date(),
  6. top:200
  7.  
  8. });
  9.  
  10. var picker = Ti.UI.createPicker();
  11. picker.showDatePickerDialog({
  12. callback: function(e) {
  13. if (e.cancel) {
  14. Ti.API.info('user canceled dialog');
  15. } else {
  16. Ti.API.info('user selected date: ' + e.value);
  17. }
  18. }
  19. });
Advertisement
Add Comment
Please, Sign In to add comment