|
|
@ -23,13 +23,19 @@ namespace Volo.Abp.AspNetCore.Mvc.UI.Widgets
|
|
|
|
}
|
|
|
|
}
|
|
|
|
private ILocalizableString _displayName;
|
|
|
|
private ILocalizableString _displayName;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[NotNull]
|
|
|
|
public Type ViewComponentType { get; set; }
|
|
|
|
public Type ViewComponentType { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[CanBeNull]
|
|
|
|
|
|
|
|
public WidgetDimensions DefaultDimensions { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
public WidgetDefinition(
|
|
|
|
public WidgetDefinition(
|
|
|
|
[NotNull] string name,
|
|
|
|
[NotNull] string name,
|
|
|
|
[NotNull] Type viewComponentType,
|
|
|
|
[NotNull] Type viewComponentType,
|
|
|
|
[CanBeNull] ILocalizableString displayName)
|
|
|
|
[CanBeNull] ILocalizableString displayName,
|
|
|
|
|
|
|
|
[CanBeNull] WidgetDimensions defaultDimensions = null)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
DefaultDimensions = defaultDimensions;
|
|
|
|
Name = Check.NotNullOrWhiteSpace(name, nameof(name));
|
|
|
|
Name = Check.NotNullOrWhiteSpace(name, nameof(name));
|
|
|
|
ViewComponentType = Check.NotNull(viewComponentType, nameof(viewComponentType));
|
|
|
|
ViewComponentType = Check.NotNull(viewComponentType, nameof(viewComponentType));
|
|
|
|
DisplayName = displayName ?? new FixedLocalizableString(name);
|
|
|
|
DisplayName = displayName ?? new FixedLocalizableString(name);
|
|
|
|