Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
public HtmlString CreateEditableExample()
{
return new HtmlString(_glassHtml.Editable(item, i => i.SomeField,
new
{
EnclosingTag = "h2", // Wrap the field in <h2>
DisableWebEdit = false, // Disable or enable web edit
ShowTitleWhenBlank = "true" // Show the field title if field is empty
}));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.