CssClassAttribute class

namespace: Serenity.ComponentModel   assemblySerenity.Net.Core

Sets the CSS class for columns and form fields. In forms, class is added to container div with .field class that contains both label and editor. For columns, it sets cssClass property of SlickColumn, which adds this class to slick cells for all rows. Slick column headers are not affected by this attribute, use HeaderCssClass for that.

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

Public Members

name description
CssClassAttribute(…) Initializes a new instance of the CssClassAttribute class.
CssClass { get; } Gets the CSS class.

See Also