24 lines
735 B
C#
24 lines
735 B
C#
using zero.Core.Entities;
|
|
|
|
namespace zero;
|
|
|
|
public class IconOptions : OptionsEnumerable<IconSet>, IOptionsEnumerable
|
|
{
|
|
/// <summary>
|
|
/// Add a new backoffice icon set
|
|
/// </summary>
|
|
/// <param name="alias">Alias for reference</param>
|
|
/// <param name="name">Name of the icon set</param>
|
|
/// <param name="spritePath">Path to the SVG sprite containing addressable symbols</param>
|
|
/// <param name="prefix">Optional symbol identifier prefix (by default the alias is used)</param>
|
|
public void AddSet(string alias, string name, string spritePath, string prefix = null)
|
|
{
|
|
Items.Add(new IconSet()
|
|
{
|
|
Alias = alias,
|
|
Name = name,
|
|
SpritePath = spritePath,
|
|
Prefix = prefix ?? alias
|
|
});
|
|
}
|
|
} |