Skip to content

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.
InferKey { get; set; } Indicates whether the key should be inferred automatically from the type name, module name and namespace.
Key { get; } Gets the key. If no key is set, and InferKey is true, the key will be inferred automatically from the type name, module name and namespace. If InferKey is false, the key is full type name of the type this attribute is placed on.
LocalTextPrefix { get; set; } If set, modifies the local text prefix that should be used instead of the automatically calculated one from Key and Namespace
static AutoColumnsKeyFor(…) Gets the automatically inferred columns key for the specified type.

See Also