A widget should have only one IWidgetViewModel by default... wondering whether if we should go for the first served, or throw if multiple detected, or ignore the widget
This commit is contained in:
@@ -4,12 +4,15 @@ public class ContextualWidget :
|
||||
IWidget
|
||||
{
|
||||
public IWidgetBuilder Create() =>
|
||||
WidgetBuilder<ContextualWidgetConfiguration>.Configure(args =>
|
||||
{
|
||||
args.Name = "Contextual commands";
|
||||
WidgetBuilder.Create()
|
||||
.Configuration<ContextualWidgetConfiguration>(args =>
|
||||
{
|
||||
args.Name = "Contextual commands";
|
||||
|
||||
}).ConfigureServices(args =>
|
||||
{
|
||||
args.AddWidgetTemplate<ContextualWidgetViewModel>();
|
||||
});
|
||||
})
|
||||
.UseViewModel<ContextualWidgetViewModel>()
|
||||
.ConfigureServices(args =>
|
||||
{
|
||||
args.AddWidgetTemplate<ContextualWidgetViewModel>();
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user