We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Change Padding or LineHeight HelpText/ErrorText

There is any way to change Padding or LineHeight HelpText/ErrorText under Inputview?

1 Reply

RA Rachel A Syncfusion Team August 7, 2019 08:53 AM UTC

Hi Laerte, 

Greetings from Syncfusion.
 
   
As per the material design specification, the helper and error text have to start with same left spacing below the input text of SfTextInputLayout for better UI appearance. If you still need to set margin for helper/error text, you can achieve this by adding Environment.NewLine for top margin and empty string before the actual helper/error text for left margin as like the below code snippet:  
  
[C#]:   
  private void SetMargin(string errorText)  
  { 
        MarginUpdatedErrorText = Environment.NewLine + "       " + errorText;  
  }  
   
We have prepared a sample for your reference and it can be downloaded from the below link. 
   
   
Please let us know if your requirement is different from this. 
 
Regards, 
Rachel. 


Loader.
Live Chat Icon For mobile
Up arrow icon