mirror of https://github.com/abpframework/abp.git
csharpabpc-sharpframeworkblazoraspnet-coredotnet-coreaspnetcorearchitecturesaasdomain-driven-designangularmulti-tenancy
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
958 B
28 lines
958 B
using System.Collections.Generic;
|
|
using DashboardDemo.Localization.DashboardDemo;
|
|
using DashboardDemo.Pages.widgets;
|
|
using Volo.Abp.AspNetCore.Mvc.UI.Widgets;
|
|
using Volo.Abp.Localization;
|
|
|
|
namespace DashboardDemo.Widgets
|
|
{
|
|
public class WidgetDefinitionProvider : IWidgetDefinitionProvider
|
|
{
|
|
public List<WidgetDefinition> GetDefinitions()
|
|
{
|
|
return new List<WidgetDefinition>
|
|
{
|
|
new WidgetDefinition(
|
|
WidgetNames.MyWidget,
|
|
typeof(MyWidgetViewComponentModel),
|
|
new LocalizableString(typeof(DashboardDemoResource), "MyWidgett")
|
|
),
|
|
new WidgetDefinition(
|
|
WidgetNames.DemoStatistics,
|
|
typeof(DemoStatisticsViewComponentModel),
|
|
new LocalizableString(typeof(DashboardDemoResource), "DemoStatistics")
|
|
)
|
|
};
|
|
}
|
|
}
|
|
}
|
|
|