mirror of https://github.com/abpframework/abp.git
7 changed files with 6 additions and 48 deletions
@ -1,12 +0,0 @@ |
|||
namespace Volo.Abp.AspNetCore.Mvc.UI.Dashboards |
|||
{ |
|||
public static class WidgetOptionsExtensions |
|||
{ |
|||
public static void AddDashboards<T>(this DashboardOptions options) |
|||
where T : IDashboardDefinitionProvider, new() |
|||
{ |
|||
var widgets = new T().GetDefinitions(); |
|||
options.Dashboards.AddRange(widgets); |
|||
} |
|||
} |
|||
} |
|||
@ -1,9 +0,0 @@ |
|||
using System.Collections.Generic; |
|||
|
|||
namespace Volo.Abp.AspNetCore.Mvc.UI.Dashboards |
|||
{ |
|||
public interface IDashboardDefinitionProvider |
|||
{ |
|||
List<DashboardDefinition> GetDefinitions(); |
|||
} |
|||
} |
|||
@ -1,9 +0,0 @@ |
|||
using System.Collections.Generic; |
|||
|
|||
namespace Volo.Abp.AspNetCore.Mvc.UI.Widgets |
|||
{ |
|||
public interface IWidgetDefinitionProvider |
|||
{ |
|||
List<WidgetDefinition> GetDefinitions(); |
|||
} |
|||
} |
|||
@ -1,12 +0,0 @@ |
|||
namespace Volo.Abp.AspNetCore.Mvc.UI.Widgets |
|||
{ |
|||
public static class WidgetOptionsExtensions |
|||
{ |
|||
public static void AddWidgets<T>(this WidgetOptions options) |
|||
where T : IWidgetDefinitionProvider, new() |
|||
{ |
|||
var widgets = new T().GetDefinitions(); |
|||
options.Widgets.AddRange(widgets); |
|||
} |
|||
} |
|||
} |
|||
Loading…
Reference in new issue