Skip to content
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

DatePicker: Option to automatically switch to TimePicker on selecting a date #3846

Closed
Cairon opened this issue Jul 22, 2019 · 1 comment
Closed
Assignees

Comments

@Cairon
Copy link

Cairon commented Jul 22, 2019

What problem does this feature solve?

Users feedback about date/time selection:

After selecting a date, the user have to click on "select time" in order to change the time, change time, and then click ok. Some users even dont see "select time" directly.

It will be smoother for the user to avoid manually switch between views, by doing it automatically after choosing a date.

This could be done by adding options to customize the behavior on selecting date and/or time.

Or expose open/close methods to do it in our component as #3352 with providing event emitter to detect the date selection.

What does the proposed API look like?

<nz-date-picker
      nzShowTime
  ==> nzAutoSwitchTime
      nzFormat="yyyy-MM-dd HH:mm:ss"
      nzPlaceHolder="Select Time"
      (ngModelChange)="onChange($event)"
      (nzOnOk)="onOk($event)"
    ></nz-date-picker>
@wenqi73
Copy link
Member

wenqi73 commented Jan 7, 2020

Please track #3148.

@wenqi73 wenqi73 closed this as completed Jan 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants