Declined
Last Updated: 08 Jan 2022 12:48 by ADMIN
Rudolf
Created on: 07 Jan 2022 12:52
Category: UI for Blazor
Type: Feature Request
0
Placeholders with icons
Request to add an icon in the placeholder fields for the Dropdown and Combobox components
1 comment
ADMIN
Marin Bratanov
Posted on: 08 Jan 2022 12:48

Hi Rudolf,

The Placeholder parameter directly translates to the placeholder HTML attribute and as such it cannot have icons, it can only take a plain text string.

If you can add your custom icon to the placeholder of a plain <input type="text">, the same CSS would likely work for the Telerik inputs as well.

That said, I must mark this as declined as it is not a typical feature of HTML and even if there is a CSS way for it, it is quite hack-ish.

On a side note - the dropdownlist component does not have a placeholder at all as <select> elements never do, it has an empty text setting that is still plain text. It does, however, have a ValueTemplate where you can render your own content.

Regards,
Marin Bratanov
Progress Telerik

Learn about the important changes coming in UI for Blazor 3.0 in January 2022!