FormScriptAttribute class

namespace: Serenity.ComponentModel   assemblySerenity.Net.Core

Indicates that this type should generate a form script, which contains information about properties in this type and is an array of PropertyItem objects. Form scripts can be accessed from client side using Q.getForm("Key")

[AttributeUsage(AttributeTargets.Class)]
public sealed class FormScriptAttribute : Attribute

Public Members

name description
FormScriptAttribute() Initializes a new instance of the FormScriptAttribute class. The key of the form script will be the full name of the type this is placed on.
FormScriptAttribute(…) Initializes a new instance of the FormScriptAttribute class.
Key { get; } Gets the key.
LocalTextPrefix { get; set; } If set, modifies the local text prefix that should be used instead of the automatically calculated one from Key and Namespace

See Also