How can I close native date picker programmatically ionic 2? - ionic-framework

Using ionic 2 native plugin date picker to acquire date but l faced problem when receive notification and picker opened. When click on notification and push view date picker still opened in new view,
How to force native datepicker to close or fire cancel button in native date picker before leave view?
Or what is the best way to navigate inside app while receiving notification to close any open native components such as date picker?

Related

How to reset time picker in flutter

How to reset time picker selected time using reset button in flutter?
I used .clear() but it does not worked.
And it does not clear after submission also.

SAPUI5 DateTimeInput open by Button

I'm using a sap.m.DateTimeInput in my XML View. When the input is clicked the DatePicker Popup is opened. Now I want to add a Button beside the DateTimeInput, and let open the Date popup on button click. DateTimeInput provides no method to open the Popup as far as i know. I'using SAPUI5 version 1.28.
How can i achieve this ?
I'm a little bit lost in Borwser Events, handlers and so on.
Check out the Date Picker control. I think that this control is what you want.
Date Picker Control

Filepicker.io (iOS) - Cancel button only works one time

I've integrated Filepicker.io into my iOS application, and while testing the upload (FPPickerDelegate) functionality I've found that I can only click the Cancel button once. If I open the picker dialog again, further clicks on the Cancel button have no effect and I have to terminate the app to dismiss the dialog.
I found the problem came from reusing the FPController object. I was saving it as an instance variable, and trying to reuse it each time I created a new UIPopoverController. Recreating both at the same time solved the problem.

UI Design for UIDatePicker in iOS

I have experience in Android and currently started to learn iOS. I created a mechanism to Pick data in an Android App. When I click on Date button, a DatePicker pops up:
As you see It has Cancel and Set button.
My question is about my iphone App. I want to have the same mechanism. When I click on the button, Date picker pops up (that can have Set and cancel button like Android Date picker). How can I do that? I'm not sure that it is a good way in iPhone, Can you help me if we can design a better mechanism?
Here's a UX comparison between Android and iOS standard widgets, with links to the documentation on the relevant Apple / Android websites. It's a nice way to get started learning all the technical terms.
http://kintek.com.au/blog/portkit-ux-metaphor-equivalents-for-ios-6-and-android-4/
Hopefully that gets you started.
Apple has a sample project that demonstrates this. You'll have to adapt it slightly: instead of showing/hiding the date picker itself, you'll want to show/hide a view containing a date picker and a dismissal button.
It's called DateCell.
Basically, it treats the date picker as if it were the keyboard for a cell containing the date. You'll need to manage hiding it when the user enters a text field (and thus, needs the real keyboard) and scrolling to keep the date row in view, but all the bits you need are in this project one way or the other.
One way to do it would be add a custom buttons to the same view containing date picker and then pop it up when the users wants. Instead of using the date picker delegate use the buttons action to get the date picker value.

DatePicker doesn't display on top of ChildWindow in Wp7

i have developed child window control it has datepicker option .When i click the datepicker it has opened the date picker screen behind the Childwindow control so i am unable to select the date .
How can i display the date screen on my Child Window control ?
I found alternative way for this Query.
Event : datepicker1_ManipulationCompleted
this.close(); // this is close to strat the date manipulation
Event :datePicker1_ValueChanged
this.show() ;// Again i shows the my closed child window