Skip to content

CssClassAttribute class

namespace: Serenity.ComponentModel   assemblySerenity.Net.Core

Sets the CSS class for columns and form fields. In forms, the class is added to the container div with the .field class that contains both label and editor. For columns, it sets the cssClass property of SlickColumn, which adds this class to the 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
parameter description
cssClass The CSS class.

Public Members

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

Remarks

Initializes a new instance of the CssClassAttribute class.

See Also