Open a the date picker by clicking a button?

I’m using a tabbed interface and I either want:

A date field in the header on the top right, which I cannot seem to get right

or…

A button with the date on it in the top right, that opens a date picker when clicked. I’ve already got the button working in that the text is bound to a date model.

I want to change the date and for that change to trigger a DB lookup of the data for the new date, which is then all loaded back into the forms that are in each tab.

Anyone any ideas?

1 Like

Hi @SubEffect, I have created both time picker and date picker for ionic frame works.Try this once.
No additional dependencies like jQuery is not required. Hope this might help you. Please have a look at the below links to check out the demos and bower components.

ionic-timepicker demo

ionic-timepicker Bower component

ionic-datepicker demo

ionic-datepicker Bower component

1 Like