Directive UpperCase


Topic: Directive UpperCase

evieira357 pro asked 5 years ago

Hi guys,

I'm needing that all my inputs type="text" become a uppercase input.

Is there? Inside all many directives that there is in MDB, maybe, there is one that will can help me to acomplish this task without need to write a bunch of code.

Sincerally, Edson


Arkadiusz Idzikowski staff answered 5 years ago

Hello,

Unfortunately, we don't have such directive. I will add this feature to our nice-to-have list and we will consider implementing it in the future. It might be good idea to have this kind of helpers in the library.

Please take a look at this thread for some ideas on how to implement such directive for your use case.

https://stackoverflow.com/questions/35826325/how-to-convert-input-value-to-uppercase-in-angular-2-value-passing-to-ngcontrol/42728447

Angular UpperCasePipe may be helpful as well:

https://angular.io/api/common/UpperCasePipe


Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Answered

Specification of the issue
  • User: Pro
  • Premium support: No
  • Technology: MDB Angular
  • MDB Version: 7.5.4
  • Device: Desktop
  • Browser: Chrome
  • OS: Windows 10
  • Provided sample code: No
  • Provided link: No
Tags