PlaceholderAttribute class
namespace: Serenity.ComponentModel assembly: Serenity.Net.Core
Sets a placeholder for a form field. Placeholder text is shown inside the editor when its value is empty. Only editors using basic inputs and the Select2 editor support this.
[AttributeUsage(AttributeTargets.All)]
public class PlaceholderAttribute : Attribute
| parameter | description |
|---|---|
| value | The value. |
Public Members
| name | description |
|---|---|
| PlaceholderAttribute(…) | Sets a placeholder for a form field. Placeholder text is shown inside the editor when its value is empty. Only editors using basic inputs and the Select2 editor support this. |
| Value { get; } | Gets the value. |
Remarks
Initializes a new instance of the PlaceholderAttribute class.
See Also
- Source: PlaceholderAttribute.cs