2021-11-23 11:56:42 +01:00
|
|
|
namespace zero.Backoffice.UIComposition;
|
2021-11-22 14:29:22 +01:00
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// A section is a main part of the backoffice application
|
|
|
|
|
/// </summary>
|
2021-11-23 11:35:01 +01:00
|
|
|
public class BackofficeSection : IBackofficeSection, IChildBackofficeSection
|
2021-11-22 14:29:22 +01:00
|
|
|
{
|
|
|
|
|
/// <inheritdoc />
|
|
|
|
|
public string Alias { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <inheritdoc />
|
|
|
|
|
public string Name { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <inheritdoc />
|
|
|
|
|
public string Icon { get; set; }
|
|
|
|
|
|
2021-12-29 01:25:35 +01:00
|
|
|
/// <inheritdoc />
|
|
|
|
|
public int Sort { get; set; }
|
|
|
|
|
|
2021-11-22 14:29:22 +01:00
|
|
|
/// <summary>
|
|
|
|
|
/// HEX color (#aabbcc or #abc). Defaults to a neutral color
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string Color { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <inheritdoc />
|
2021-11-23 11:35:01 +01:00
|
|
|
public IList<IChildBackofficeSection> Children { get; } = new List<IChildBackofficeSection>();
|
2021-11-22 14:29:22 +01:00
|
|
|
|
|
|
|
|
|
2021-11-23 11:35:01 +01:00
|
|
|
public BackofficeSection() { }
|
2021-11-22 14:29:22 +01:00
|
|
|
|
2021-12-29 01:25:35 +01:00
|
|
|
public BackofficeSection(string alias, string name, string icon = null, string color = null, int sort = 0)
|
2021-11-22 14:29:22 +01:00
|
|
|
{
|
|
|
|
|
Alias = alias;
|
|
|
|
|
Name = name;
|
|
|
|
|
Icon = icon;
|
|
|
|
|
Color = color;
|
2021-12-29 01:25:35 +01:00
|
|
|
Sort = sort;
|
2021-11-22 14:29:22 +01:00
|
|
|
}
|
|
|
|
|
}
|