I’m using the DateTime component () to fire a pretty date picker on Android and iOS. I’d like to style it and fire it from a click on a button.
I tried a lot of things but nothing seems to work. I noticed that a div element with the class “datetime-text” was generated by the ion-datetime and if I change its content by hand in the developers console in chrome, I can see a text on the button.
But if I do it before the generation, it doesn’t work (I even tried the css property “content”).
I don’t know how to do it, but basically I want my ion-datetime to look like a simple button with a text before it’s clicked, and replaced by the datetime entered.
Does anybody have seen or did this before? I didn’t find anything online.