Skip to content

ReportCategoryAttribute class

namespace: Serenity.Reporting   assembly: Serenity.Net.Services

Describes a report category, e.g. "Northwind/Sales", for a page that lists reports in groups. It is placed on an assembly, as a category has no type of its own.

[AttributeUsage(AttributeTargets.Assembly, AllowMultiple = true)]
public class ReportCategoryAttribute : Attribute
parameter description
key The key of the category, e.g. "Northwind/Sales".

Public Members

name description
ReportCategoryAttribute(…) Describes a report category, e.g. "Northwind/Sales", for a page that lists reports in groups. It is placed on an assembly, as a category has no type of its own.
Description { get; set; } A short description of the category. A "Report.Category..Description" text overrides it.
IconClass { get; set; } The icon class of the category, which is also the icon of its reports that have none.
Key { get; } The key of the category.
Order { get; set; } The order of the category among its siblings.
Title { get; set; } The title of the category, if it is not the last part of its key. A "Report.Category." text, with dots in place of the slashes of its key, overrides it.

Examples

[assembly: ReportCategory("Northwind/Sales", Description = "Revenue over time", IconClass = "fa fa-chart-bar", Order = 1)]

See Also