Created
June 15, 2015 15:35
-
-
Save jamiepollock/3897e6fa735f0b2a0321 to your computer and use it in GitHub Desktop.
The following is an implementation of the GridResolver. The attribute takes two properties; propertyAlias and framework. Framework is used to determine the grid framework. In this case it is fanoe (based on the v7.2.x+ starter kit.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Web.Mvc; | |
using Our.Umbraco.Ditto.Resolvers.Grid.Attributes; | |
namespace My.Website.ViewModels { | |
public class HomeViewModel { | |
[GridResolver(framework: "fanoe")] | |
public MvcHtmlString Content { get; set; } | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment