HtmlHelperExtensions.HasEditors Method

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

HasEditors(HtmlHelper, object, string, IEnumerable)

Check if the specified model has any editable fields.

public static bool HasEditors(this HtmlHelper html, object model = null, string group = null, IEnumerable<string> except = null)

Parameters

html
System.Web.Mvc.HtmlHelper

The HTML helper instance that this method extends.

model
object

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

group
string

The name of the group to check for editable fields, null to check fields for properties without GroupName in the model.

except
System.Collections.Generic.IEnumerable

Names of properties to exclude from the check, null includes all properties.

Returns

bool