Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature widgetfactorymethod (Razor and User Control Functions) #316

Merged
merged 7 commits into from
Dec 13, 2016

Conversation

mawtex
Copy link
Collaborator

@mawtex mawtex commented Dec 13, 2016

Pull request via 57a25aa - enabling defining parameter widgets via a method in addition to the existing Attribute based way.

Usage:

public override IDictionary<string, WidgetFunctionProvider> GetParameterWidgets()
{
    return new Dictionary<string, WidgetFunctionProvider>
    {
        { nameof(Article), StandardWidgetFunctions.TextAreaWidget }
    };
}

burningice2866 and others added 7 commits December 8, 2016 14:02
…virtual method. This implementes feature request #314

Usage:

public override IDictionary<string, WidgetFunctionProvider> GetParameterWidgets()
{
    return new Dictionary<string, WidgetFunctionProvider>
    {
        { nameof(Article), StandardWidgetFunctions.TextAreaWidget }
    };
}
Non-static WidgetFactoryMethod
…s when returning a widget provider from GetParameterWidgets for said property.
@mawtex mawtex merged commit 33a0b6b into vnext-dev Dec 13, 2016
@mawtex mawtex deleted the feature-widgetfactorymethod branch February 14, 2017 15:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants