ColumnsScriptAttribute class
namespace: Serenity.ComponentModel assembly: Serenity.Net.Core
Indicates that this type should generate a columns script, which contains information about properties in this type and is an array of PropertyItem objects. Column scripts can be accessed from the client side using Serenity.getColumns("Key").
[AttributeUsage(AttributeTargets.Class)]
public sealed class ColumnsScriptAttribute : Attribute
Public Members
| name | description |
|---|---|
| ColumnsScriptAttribute() | Initializes a new instance of the ColumnsScriptAttribute class. The key of the columns script will be the full name of the type this is placed on. |
| ColumnsScriptAttribute(…) | Initializes a new instance of the ColumnsScriptAttribute 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
- Source: ColumnsScriptAttribute.cs