PeterStaev / nativescript-masked-text-field

:hash: A NativeScript Masked Text Field widget
Apache License 2.0
25 stars 24 forks source link

[FR] make this an extension any class extending TextField #30

Open farfromrefug opened 6 years ago

farfromrefug commented 6 years ago

I am developing a material components plugin, and one of my components is a textfield. Would love to be able to use your plugin!

One solution would to make your plugin an "extension" to be applied on an existing class. Pretty easy to do with NS 5.0, we refactored it just for that!

Let me know if you are interested. I can make another plugin doing that or help you rewrite your plugin

PeterStaev commented 6 years ago

Hey @farfromrefug , not sure what do you mean under "extension", but feel free to submit a PR with your changes and I can review 😃

farfromrefug commented 6 years ago

@PeterStaev by extension i mean something that can be applied on any component extending the required native classes so that the listeners can be attached.

I ll see what i can do and if a PR is the right way to do it. Thanks for your work!