angularjshtmlangular-xeditable

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?


Solution

  • 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.