40 lines
933 B
C#
40 lines
933 B
C#
namespace zero.Backoffice.UIComposition;
|
|
|
|
/// <summary>
|
|
/// A section is a main part of the backoffice application
|
|
/// </summary>
|
|
public class BackofficeSection : IBackofficeSection, IChildBackofficeSection
|
|
{
|
|
/// <inheritdoc />
|
|
public string Alias { get; set; }
|
|
|
|
/// <inheritdoc />
|
|
public string Name { get; set; }
|
|
|
|
/// <inheritdoc />
|
|
public string Icon { get; set; }
|
|
|
|
/// <inheritdoc />
|
|
public int Sort { get; set; }
|
|
|
|
/// <summary>
|
|
/// HEX color (#aabbcc or #abc). Defaults to a neutral color
|
|
/// </summary>
|
|
public string Color { get; set; }
|
|
|
|
/// <inheritdoc />
|
|
public IList<IChildBackofficeSection> Children { get; } = new List<IChildBackofficeSection>();
|
|
|
|
|
|
public BackofficeSection() { }
|
|
|
|
public BackofficeSection(string alias, string name, string icon = null, string color = null, int sort = 0)
|
|
{
|
|
Alias = alias;
|
|
Name = name;
|
|
Icon = icon;
|
|
Color = color;
|
|
Sort = sort;
|
|
}
|
|
}
|