Skip to content
This repository has been archived by the owner on Oct 5, 2019. It is now read-only.

timepicker options not applying as seen in tutorial (specifically for showMeridian) #212

Open
Jord-Holt opened this issue Jan 19, 2018 · 1 comment

Comments

@Jord-Holt
Copy link

This is on the latest version. (1.4.0)

I am trying to use the timepicker functionality of the datetime component. However it seems to be completely ignoring anything I specify for the timepicker attribute. Example to follow....

<datetime  name="newStartDate" id="newStartDate"
     [timepicker]="{ showMeridian: false, minuteStep: 1 }"
     [datepicker]="startDateOptions"
     [(ngModel)]="newStartDate"></datetime>

variable definitions....

startDateOptions = {
startDate: new Date(),
autoclose: true
};

newStartDate: Date = null;

The datetime component appears but is still showing the meridian and minuteStep is 15 instead of 1 as specified. The component IS detecting my date option specifications. I pulled these options directly from the example at https://nkalinov.github.io/ng2-datetime/ so I am at a bit of a loss here. Am I missing some small detail?

Thanks,
Jordan

@SATEESHLRR
Copy link

SATEESHLRR commented May 10, 2018

Hi ,
I am trying to use the timepicker functionality of the datetime component.but -timepicker-widget dropdown-menu timepicker widget i didn't get widget.may i know the problem.
timpicker-widget

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants