M
M
MrDrap2019-03-30 14:15:02
JavaScript
MrDrap, 2019-03-30 14:15:02

How to make custom input with datepicker on angular 6?

I have an input for a calendar with my icon
https://jsfiddle.net/ac0v8x6j/
I want to use a material datepicker with it, but the datepicker substitutes its own icon
, can I somehow implement my input with the datepicker?
already googled, tried different options, something does not work

Answer the question

In order to leave comments, you need to log in

1 answer(s)
J
Johny, 2019-04-01
@MrDrap

You can override the icon by assigning a background image to the .mat-datepicker-toggle
class Left an example here:
Stackblitz

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question