1.2.1 • Published 7 years ago

nativescript-timedatepicker v1.2.1

Weekly downloads
66
License
-
Repository
github
Last release
7 years ago

nativescript-timedatepicker

A NativeScript plugin providing native date and time pickers for Android and iOS.

##Android side alt tag ##iOS side alt tag

Usage

//Import the plugin
import * as TimeDatePicker from 'nativescript-timedatepicker';

//Create a callback function
let mCallback =  ((result) => {
  if (result) {
    alert("the time is "+result);
  }
});

//Initialize the PickerManager (.init(yourCallback, title, initialDate))
TimeDatePicker.init(mCallback,null,null);

//Show the dialog
TimeDatePicker.showDatePickerDialog();

For more examples of usage see the demo main-view-model.ts.

##IOS localization

If you want the buttons to be on some other language than english you have to add that language to your project on xcode.

alt tag

##Credits This plugin abstract two native libraries, hence here are the project and deserved merit to the creators.

For iOS https://github.com/hackiftekhar/IQActionSheetPickerView
For Android https://github.com/CiTuX/datetimepicker

1.2.1

7 years ago

1.2.0

7 years ago

1.1.1

7 years ago

1.1.0

7 years ago

1.0.0

8 years ago

0.3.1

8 years ago

0.3.0

8 years ago

0.2.4

8 years ago

0.2.2

8 years ago

0.2.1

8 years ago

0.2.0

8 years ago

0.1.3

8 years ago

0.1.2

8 years ago

0.1.1

8 years ago

0.1.0

8 years ago