HtmlHelperExtensions.HasHtmlEditor Method

Namespace:
Weavy.Web.Extensions
Assembly:
Weavy.Web.dll

HasHtmlEditor(HtmlHelper, object)

Helper method for checking if the specified model object has a property marked with System.ComponentModel.DataAnnotations.DataType.Html.

public static bool HasHtmlEditor(this HtmlHelper html, object model = null)

Parameters

html
System.Web.Mvc.HtmlHelper

The HTML helper instance that this method extends.

model
object

The object to which for html editor fields, null to check the current model.

Returns

bool