mirror of https://github.com/abpframework/abp.git
8 changed files with 33 additions and 39 deletions
@ -1,21 +1,14 @@ |
|||||
using System.Collections.Generic; |
namespace Volo.CmsKit.Contents; |
||||
|
|
||||
namespace Volo.CmsKit.Contents; |
|
||||
|
|
||||
public class ContentWidgetConfig |
public class ContentWidgetConfig |
||||
{ |
{ |
||||
public string Name { get; } |
public string Name { get; } |
||||
public List<PropertyDto> Properties { get; } |
public string InternalName { get; } |
||||
|
|
||||
public ContentWidgetConfig(string widgetName) |
public ContentWidgetConfig(string widgetName, string internalName) |
||||
{ |
{ |
||||
Properties = new(); |
|
||||
Name = widgetName; |
Name = widgetName; |
||||
} |
InternalName = internalName; |
||||
|
|
||||
public void AddProperty(string key, string name) |
|
||||
{ |
|
||||
Properties.Add(new PropertyDto() { Key = key, Name = name }); |
|
||||
} |
} |
||||
|
|
||||
} |
} |
||||
Loading…
Reference in new issue