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

Ionic2 ion-datetime default content

$
0
0

@florianeyzat wrote:

Hello,

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.
thank you

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 71427

Trending Articles



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