@using Syncfusion.EJ2.Blazor.Inputs
<EjsTextBox CssClass="e-custom-height e-outline" Placeholder="Enter the Name"></EjsTextBox>
<style>
.e-custom-height {
height: 50px;
}
</style> |
<div>MultiLine TextBox</div>
<EjsTextBox Multiline="true" CssClass="e-outline" Placeholder="Enter the Name" HtmlAttributes="@htmlAttribute"></EjsTextBox>
@code{
private Dictionary<string, object> htmlAttribute = new Dictionary<string, object>()
{
{"rows", "2" }
};
} |
@using Syncfusion.EJ2.Blazor.Inputs
<EjsTextBox CssClass="e-custom-height e-outline" FloatLabelType="@FloatLabelType.Auto" Placeholder="Enter the Name"></EjsTextBox>
<div>MultiLine TextBox</div>
<EjsTextBox Multiline="true" CssClass="e-outline" Placeholder="Enter the Name" FloatLabelType="@FloatLabelType.Auto" HtmlAttributes="@htmlAttribute"></EjsTextBox>
<style>
.e-custom-height {
height: 50px;
}
.e-outline.e-float-input.e-control-wrapper:not(.e-valid-input).e-multi-line-input textarea:focus ~ label.e-float-text.e-label-top,
.e-outline.e-float-input.e-control-wrapper:not(.e-valid-input).e-multi-line-input textarea:focus ~ label.e-float-text.e-label-bottom {
line-height: 16.8px;
transition: color .2s, font-size .2s, line-height .2s;
}
</style>
@code{
private Dictionary<string, object> htmlAttribute = new Dictionary<string, object>()
{
{"rows", "2" }
};
} |