Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70435

Using ion-datetime programatically

$
0
0

@loki9182 wrote:

In Ionic v4, I’m trying to figure out how to open a datetime picker programatically without the need to have an ion-datetime tag in my html.

What I’m trying to do is have a button called “Add a date” which would popup an ion-picker with date or datetime columns and when the user clicks ok, I could just get the selected date or datetime in the onDismiss function. I imagine I could use the ion-picker to display my date/mon/year hh/mm columns but I would save time by using the one from ion-datetime.

Is there a way to do this entirely in javascript when ever I need to allow the user to pick a date?

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 70435

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>