ant-design-blazor/components/input/AntTextArea.razor

14 lines
518 B
Plaintext
Raw Normal View History

@namespace AntBlazor
@inherits AntInput
<!--TODO: minheight, maxheight, onResize-->
<textarea class="@ClassMapper.Class" style="@Style" @attributes="Attributes" id="@Id" placeholder="@Placeholder" @bind="Value"
@ref="InputEl"
@oninput="OnInputAsync"
@onkeypress="OnPressEnterAsync" />
@if (AutoSize)
{
<textarea class="@ClassMapper.Class" style="position:absolute;z-index:-1; visibility: hidden;height: 0px;overflow-y:hidden; @_hiddenWidth" @ref="_hiddenEle">@Value</textarea>
}