{
"value": "What ever value entered into the textarea",
"editor": {
"name": "Code",
"alias": "code",
"view": "/app_plugins/yourpackage/editor.html",
"icon": "icon-code",
"config": {
"color": "red",
"text-align": "right"
}
}
Should my model inherit from something?
public class MyCustomModel
{
[JsonProperty("value")]
public string Value { get; set; }
// GridEditor is a custom object containing name,alias,view,icon and config.
[JsonProperty("editor")]
public GridEditor Editor { get; set; }
}
So i can use this?
// This
@inherits Umbraco.Web.Mvc.UmbracoViewPage<dynamic>
// To
@inherits Umbraco.Web.Mvc.UmbracoViewPage<MyCustomModel>
Rendering grid editor content as C# object instead of dynamic
Hi all.
Is it possible to use MyCustomModel instead of a dynamic when rendering grid editor content?
Taken from build-your-own-grid-edior, Model would look like this.
Should my model inherit from something?
So i can use this?
is working on a reply...