PlaceholderAttribute class

namespace: Serenity.ComponentModel   assemblySerenity.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 Select2 editor supports this.

[AttributeUsage(AttributeTargets.All)]
public class PlaceholderAttribute : Attribute

Public Members

name description
PlaceholderAttribute(…) Initializes a new instance of the PlaceholderAttribute class.
Value { get; } Gets the value.

See Also