Unplanned
Last Updated: 02 Nov 2020 09:19 by ADMIN
René
Created on: 26 Oct 2020 14:58
Category: TextArea
Type: Feature Request
4
Add a character counter, whose visibility is toggled by a boolean parameter

I would like to be able to show or hide a character counter like in this demo by using a boolean parameter. 

<AdminEdit>

Currently, this could be achieved as shown in this demo or from this example from the documentation:

<label for="myCustomTextAreaId">My Telerik TextArea</label>
<TelerikTextArea @bind-Value="@TextAreaValue"
                 Id="myCustomTextAreaId"
                 Name="myCustomTextAreaId"
                 PlaceHolder="Enter some Information"
                 AutoComplete="true"
                 TabIndex="2"
                 AutoSize="true">
</TelerikTextArea>

<div class="k-counter-container">
    <span>@TextAreaValue.Length</span><span>/200</span>
</div>

@code {
    public string TextAreaValue { get; set; } = String.Empty;
}

</AdminEdit>

0 comments