Was this changed in the newest versions? Not working on 20.3.0.48. The code bellow still loads with only 1 line.
<div class="col">
<SfTextBox ID="password" Multiline="true" HtmlAttributes="@DescriptionHtmlAttribute" CssClass="@cssClass" Type="InputType.Password" Placeholder="Password" FloatLabelType="@FloatLabelType.Auto"></SfTextBox>
</div>
@code {
private string cssClass { get; set; } = "e-outline";
protected Dictionary<string, object> DescriptionHtmlAttribute { get; set; } = new Dictionary<string, object>()
{
{ "rows", "5" },
};
}
Hi Francisco,
We can directly bind the rows property to the TextBox component to increase the number of rows in the component. Please refer to the below code snippet and documentation for more details.
<SfTextBox ID="password" Multiline="true" rows="5" CssClass="@cssClass" Type="InputType.Password" Placeholder="Password" FloatLabelType="@FloatLabelType.Auto"></SfTextBox> |
Documentation : https://blazor.syncfusion.com/documentation/common/html-attributes#using-html-attributes-and-dom-events-in-the-input-element
Sample : https://www.syncfusion.com/downloads/support/directtrac/general/ze/TextBoxRow978431317
If this post is helpful, please consider Accepting it as the solution so that other members can locate it more quickly.
Udhaya Kumar D
Thank you Udhaya!
This works perfec