Set rows

Hello, is there a way to set the initial row number in a multiline textbox?

<ejs-textbox [multiline]="true" rows="15"></ejs-textbox>

Thanks

3 Replies 1 reply marked as answer

PM Ponmani Murugaiyan Syncfusion Team May 5, 2021 08:04 AM UTC

Hi matteo, 

Thanks for contacting Syncfusion support. 

Yes, you can set the initial row height in Multiline textbox using htmlAttributes property as like below code snippet. 


<ejs-textbox [multiline]="true" [htmlAttributes]="htmlAttributes"></ejs-textbox> 

export class AppComponent { 
    constructor() {} 
    public htmlAttributes = { rows: "5" }; 
  } 


Output:  
 
 


Regards, 
Ponmani M 


Marked as answer

MA matteo May 5, 2021 09:54 AM UTC

It worked, thanks a lot.


PM Ponmani Murugaiyan Syncfusion Team May 6, 2021 04:03 AM UTC

Hi matteo, 

Most Welcome. We are always happy to assist you. 

Regards, 
Ponmani M 


Loader.
Up arrow icon