-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Doc for Angular Nativescript #8
Comments
+1 |
I just installed this plugin by the command main.component.ts: import * as ModalPicker from 'nativescript-modal-datetimepicker';
pickDate() {
const picker = new ModalPicker.ModalDatetimepicker();
picker.pickDate({
title: 'Please enter your birthday',
theme: 'dark',
maxDate: new Date(),
is24HourView: false
}).then((result) => {
this.birthday = result['year'] + '-' + result['month'] + '-' + result['day'];
}).catch((error) => {
console.log('Error: ' + error);
});
} main.component.html: <TextField hint="Please enter your birthday" [(ngModel)]="birthday" (tap)="pickDate()" editable="false"></TextField> |
There is one more step you need to take in order to work correctly:
|
how to use webpack angular |
Thanks! |
how to use the clock instead of the time spinner for angular?? |
go to
For Calendar, change the followings
to
For Clock, change the followings:
to
|
how to show only month in picker ? |
Hi Dave,
Could you add an installation & example doc for the Angular NS?
Thx!
The text was updated successfully, but these errors were encountered: