#Wrapping component implementing `ControlValueAccessor`

6 messages · Page 1 of 1 (latest)

main ferry
#

I'm trying to wrap https://github.com/mattlewis92/angularx-flatpickr in my component to extend with styling and additional fetures. Now I'm trying to avoid implement ControlValueAccessor myself having Inputs formControl and formControlName in my wrapper and passing them on to the <input mwlFlatpickr ...>. Is this possible?

GitHub

An angular 14.0+ wrapper for flatpickr. Contribute to mattlewis92/angularx-flatpickr development by creating an account on GitHub.

sharp condor
#

Did you try (ew) inheritance?

main ferry
#

What exactly would I inherit? The directive?

sharp condor
#

yes

main ferry
#

So the result would be a directive that I can use like the one in angularx-flatpickr, right?

#

I think I understand