Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to add max-length attribute to Angular-xeditable?

<span editable-text="contact.phoneNumber" maxlength="5"  e-name="phoneNumber" e-form="contactForm" >
  {{ contact.phoneNumber || '' }}
</span>

I have used the directive inside a span and it is generating and inputbox on run time, when we click on a button to edit the Contact Number. I want to add a maximum length to this input box. Any suggestions?

like image 373
Madhavi Jouhari Avatar asked Feb 10 '23 12:02

Madhavi Jouhari


1 Answers

you can use

e-maxlength e-minlength

if you see the documentacion , on e attribute you have this:

Attributes defined with e-* prefix automatically transfered from original element to control.

like image 131
Victor Morais Avatar answered Feb 13 '23 03:02

Victor Morais