Skip to main content
Dear Team ,

Plz let me know How to set Minlength and Max length in lightning input textarea?

Thanks & Regards

Sachin Bhalerao

 
4 个回答
  1. 2019年11月28日 14:13
    Hi Sachin,

    I have gone through your question. To given the maxlength in the there standard defined function in lightning:inputTextarea tag.

    maxlength  ---> Type--->integer    global        

    Description--->    The maximum number of characters that can be typed into the input field. 

                    Corresponds to the maxlength attribute of the rendered HTML Textarea element.

    Example:--

    <ui:inputTextArea aura:id="comments" label="Comments"  value="My comments" rows="5"  maxlength="255"/>

     

    I hope you find the above solution helpful. If it does, please mark as Best Answer to help others too.

    Thanks and Regards,

    Deepali Kulshrestha

    www.kdeepali.com
0/9000