This is a migrated thread and some comments may be shown as answers.

How can I add a placeholder on the Blazor TextBox?

2 Answers 567 Views
TextBox
This is a migrated thread and some comments may be shown as answers.
SL
Top achievements
Rank 1
Veteran
SL asked on 07 Jan 2020, 11:02 PM

You can do this with the standard input element:

<input type="text" class="form-control" id="counterAccountCode" placeholder="999-999-999-999-999-999, NONE if not applicable" bind="@Item.CounterAccountCode" />

 

Is there a way to do this with the Blazor TextBox or is this something that is still in the works?

 

Thanks.

2 Answers, 1 is accepted

Sort by
0
Accepted
Marin Bratanov
Telerik team
answered on 08 Jan 2020, 07:54 AM

Hi,

The Label parameter does this, you can see it in action in the demos: https://demos.telerik.com/blazor-ui/textbox/overview.

 

Regards,
Marin Bratanov
Progress Telerik

 UI for Blazor
0
SL
Top achievements
Rank 1
Veteran
answered on 08 Jan 2020, 03:24 PM
Thank you Marin.
Tags
TextBox
Asked by
SL
Top achievements
Rank 1
Veteran
Answers by
Marin Bratanov
Telerik team
SL
Top achievements
Rank 1
Veteran
Share this question
or