Codemaid
This commit is contained in:
@@ -1,11 +1,12 @@
|
||||
using Hyperbar.Extensions;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
|
||||
namespace Hyperbar.Widget.Contextual;
|
||||
|
||||
public class ContextualWidgetBuilder :
|
||||
public class ContextualWidgetBuilder :
|
||||
IWidgetBuilder
|
||||
{
|
||||
public void Create(IServiceCollection services) => services
|
||||
.AddConfiguration<ContextualWidgetConfiguration>()
|
||||
.AddWidgetTemplate<ContextualWidgetViewModel>();
|
||||
}
|
||||
}
|
||||
@@ -1,5 +1,5 @@
|
||||
namespace Hyperbar.Widget.Contextual;
|
||||
|
||||
public class ContextualWidgetConfiguration
|
||||
{
|
||||
}
|
||||
{
|
||||
}
|
||||
@@ -3,7 +3,7 @@
|
||||
public class ContextualWidgetViewModel :
|
||||
WidgetViewModelBase
|
||||
{
|
||||
public ContextualWidgetViewModel(ITemplateFactory templateFactory,
|
||||
public ContextualWidgetViewModel(ITemplateFactory templateFactory,
|
||||
IServiceFactory serviceFactory) : base(templateFactory, serviceFactory)
|
||||
{
|
||||
Add<WidgetButtonViewModel>();
|
||||
|
||||
Reference in New Issue
Block a user