Class HtmlEditorExtensions
Represents support for the HTML input element in an application.
Inheritance
Namespace: DotNetNuke.Web.Mvc.Helpers
Assembly: DotNetNuke.Web.Mvc.dll
Syntax
public static class HtmlEditorExtensions : object
Methods
| Improve this Doc View SourceEditor(DnnHtmlHelper, String, Object)
Returns an HTML input element for each property in the object that is represented by the expression, using additional view data.
Declaration
public static MvcHtmlString Editor(this DnnHtmlHelper html, string expression, object additionalViewData)
Parameters
| Type | Name | Description |
|---|---|---|
| DnnHtmlHelper | html | The HTML helper instance that this method extends. |
| System.String | expression | An expression that identifies the object that contains the properties to display. |
| System.Object | additionalViewData | An anonymous object that can contain additional view data that will be merged into the System.Web.Mvc.ViewDataDictionary`1 instance that is created for the template. |
Returns
| Type | Description |
|---|---|
| MvcHtmlString | An HTML input element for each property in the object that is represented by the expression. |
Editor(DnnHtmlHelper, String, String, Object)
Returns an HTML input element for each property in the object that is represented by the expression, using the specified template and additional view data.
Declaration
public static MvcHtmlString Editor(this DnnHtmlHelper html, string expression, string templateName, object additionalViewData)
Parameters
| Type | Name | Description |
|---|---|---|
| DnnHtmlHelper | html | The HTML helper instance that this method extends. |
| System.String | expression | An expression that identifies the object that contains the properties to display. |
| System.String | templateName | The name of the template to use to render the object. |
| System.Object | additionalViewData | An anonymous object that can contain additional view data that will be merged into the System.Web.Mvc.ViewDataDictionary`1 instance that is created for the template. |
Returns
| Type | Description |
|---|---|
| MvcHtmlString | An HTML input element for each property in the object that is represented by the expression. |
Editor(DnnHtmlHelper, String, String, String, Object)
Returns an HTML input element for each property in the object that is represented by the expression, using the specified template, HTML field name, and additional view data.
Declaration
public static MvcHtmlString Editor(this DnnHtmlHelper html, string expression, string templateName, string htmlFieldName, object additionalViewData)
Parameters
| Type | Name | Description |
|---|---|---|
| DnnHtmlHelper | html | The HTML helper instance that this method extends. |
| System.String | expression | An expression that identifies the object that contains the properties to display. |
| System.String | templateName | The name of the template to use to render the object. |
| System.String | htmlFieldName | A string that is used to disambiguate the names of HTML input elements that are rendered for properties that have the same name. |
| System.Object | additionalViewData | An anonymous object that can contain additional view data that will be merged into the System.Web.Mvc.ViewDataDictionary`1 instance that is created for the template. |
Returns
| Type | Description |
|---|---|
| MvcHtmlString | An HTML input element for each property in the object that is represented by the expression. |
Editor(DnnHtmlHelper, String, String, String)
Returns an HTML input element for each property in the object that is represented by the expression, using the specified template and HTML field name.
Declaration
public static MvcHtmlString Editor(this DnnHtmlHelper html, string expression, string templateName, string htmlFieldName)
Parameters
| Type | Name | Description |
|---|---|---|
| DnnHtmlHelper | html | The HTML helper instance that this method extends. |
| System.String | expression | An expression that identifies the object that contains the properties to display. |
| System.String | templateName | The name of the template to use to render the object. |
| System.String | htmlFieldName | A string that is used to disambiguate the names of HTML input elements that are rendered for properties that have the same name. |
Returns
| Type | Description |
|---|---|
| MvcHtmlString | An HTML input element for each property in the object that is represented by the expression. |
Editor(DnnHtmlHelper, String, String)
Returns an HTML input element for each property in the object that is represented by the expression, using the specified template.
Declaration
public static MvcHtmlString Editor(this DnnHtmlHelper html, string expression, string templateName)
Parameters
| Type | Name | Description |
|---|---|---|
| DnnHtmlHelper | html | The HTML helper instance that this method extends. |
| System.String | expression | An expression that identifies the object that contains the properties to display. |
| System.String | templateName | The name of the template to use to render the object. |
Returns
| Type | Description |
|---|---|
| MvcHtmlString | An HTML input element for each property in the object that is represented by the expression. |
Editor(DnnHtmlHelper, String)
Returns an HTML input element for each property in the object that is represented by the expression.
Declaration
public static MvcHtmlString Editor(this DnnHtmlHelper html, string expression)
Parameters
| Type | Name | Description |
|---|---|---|
| DnnHtmlHelper | html | The HTML helper instance that this method extends. |
| System.String | expression | An expression that identifies the object that contains the properties to display. |
Returns
| Type | Description |
|---|---|
| MvcHtmlString | An HTML input element for each property in the object that is represented by the expression. |
EditorFor<TModel, TValue>(DnnHtmlHelper<TModel>, Expression<Func<TModel, TValue>>, Object)
Returns an HTML input element for each property in the object that is represented by the expression, using additional view data.
Declaration
public static MvcHtmlString EditorFor<TModel, TValue>(this DnnHtmlHelper<TModel> html, Expression<Func<TModel, TValue>> expression, object additionalViewData)
Parameters
| Type | Name | Description |
|---|---|---|
| DnnHtmlHelper<TModel> | html | The HTML helper instance that this method extends. |
| Expression<Func<TModel, TValue>> | expression | An expression that identifies the object that contains the properties to display. |
| System.Object | additionalViewData | An anonymous object that can contain additional view data that will be merged into the System.Web.Mvc.ViewDataDictionary`1 instance that is created for the template. |
Returns
| Type | Description |
|---|---|
| MvcHtmlString | An HTML input element for each property in the object that is represented by the expression. |
Type Parameters
| Name | Description |
|---|---|
| TModel | The type of the model. |
| TValue | The type of the value. |
EditorFor<TModel, TValue>(DnnHtmlHelper<TModel>, Expression<Func<TModel, TValue>>, String, Object)
Returns an HTML input element for each property in the object that is represented by the expression, using the specified template and additional view data.
Declaration
public static MvcHtmlString EditorFor<TModel, TValue>(this DnnHtmlHelper<TModel> html, Expression<Func<TModel, TValue>> expression, string templateName, object additionalViewData)
Parameters
| Type | Name | Description |
|---|---|---|
| DnnHtmlHelper<TModel> | html | The HTML helper instance that this method extends. |
| Expression<Func<TModel, TValue>> | expression | An expression that identifies the object that contains the properties to display. |
| System.String | templateName | The name of the template to use to render the object. |
| System.Object | additionalViewData | An anonymous object that can contain additional view data that will be merged into the System.Web.Mvc.ViewDataDictionary`1 instance that is created for the template. |
Returns
| Type | Description |
|---|---|
| MvcHtmlString | An HTML input element for each property in the object that is represented by the expression. |
Type Parameters
| Name | Description |
|---|---|
| TModel | The type of the model. |
| TValue | The type of the value. |
EditorFor<TModel, TValue>(DnnHtmlHelper<TModel>, Expression<Func<TModel, TValue>>, String, String, Object)
Returns an HTML input element for each property in the object that is represented by the expression, using the specified template, HTML field name, and additional view data.
Declaration
public static MvcHtmlString EditorFor<TModel, TValue>(this DnnHtmlHelper<TModel> html, Expression<Func<TModel, TValue>> expression, string templateName, string htmlFieldName, object additionalViewData)
Parameters
| Type | Name | Description |
|---|---|---|
| DnnHtmlHelper<TModel> | html | The HTML helper instance that this method extends. |
| Expression<Func<TModel, TValue>> | expression | An expression that identifies the object that contains the properties to display. |
| System.String | templateName | The name of the template to use to render the object. |
| System.String | htmlFieldName | A string that is used to disambiguate the names of HTML input elements that are rendered for properties that have the same name. |
| System.Object | additionalViewData | An anonymous object that can contain additional view data that will be merged into the System.Web.Mvc.ViewDataDictionary`1 instance that is created for the template. |
Returns
| Type | Description |
|---|---|
| MvcHtmlString | An HTML input element for each property in the object that is represented by the expression. |
Type Parameters
| Name | Description |
|---|---|
| TModel | The type of the model. |
| TValue | The type of the value. |
EditorFor<TModel, TValue>(DnnHtmlHelper<TModel>, Expression<Func<TModel, TValue>>, String, String)
Returns an HTML input element for each property in the object that is represented by the System.Linq.Expressions.Expression expression, using the specified template and HTML field name.
Declaration
public static MvcHtmlString EditorFor<TModel, TValue>(this DnnHtmlHelper<TModel> html, Expression<Func<TModel, TValue>> expression, string templateName, string htmlFieldName)
Parameters
| Type | Name | Description |
|---|---|---|
| DnnHtmlHelper<TModel> | html | The HTML helper instance that this method extends. |
| Expression<Func<TModel, TValue>> | expression | An expression that identifies the object that contains the properties to display. |
| System.String | templateName | The name of the template to use to render the object. |
| System.String | htmlFieldName | A string that is used to disambiguate the names of HTML input elements that are rendered for properties that have the same name. |
Returns
| Type | Description |
|---|---|
| MvcHtmlString | An HTML input element for each property in the object that is represented by the expression. |
Type Parameters
| Name | Description |
|---|---|
| TModel | The type of the model. |
| TValue | The type of the value. |
EditorFor<TModel, TValue>(DnnHtmlHelper<TModel>, Expression<Func<TModel, TValue>>, String)
Returns an HTML input element for each property in the object that is represented by the System.Linq.Expressions.Expression expression, using the specified template.
Declaration
public static MvcHtmlString EditorFor<TModel, TValue>(this DnnHtmlHelper<TModel> html, Expression<Func<TModel, TValue>> expression, string templateName)
Parameters
| Type | Name | Description |
|---|---|---|
| DnnHtmlHelper<TModel> | html | The HTML helper instance that this method extends. |
| Expression<Func<TModel, TValue>> | expression | An expression that identifies the object that contains the properties to display. |
| System.String | templateName | The name of the template to use to render the object. |
Returns
| Type | Description |
|---|---|
| MvcHtmlString | An HTML input element for each property in the object that is represented by the expression. |
Type Parameters
| Name | Description |
|---|---|
| TModel | The type of the model. |
| TValue | The type of the value. |
EditorFor<TModel, TValue>(DnnHtmlHelper<TModel>, Expression<Func<TModel, TValue>>)
Returns an HTML input element for each property in the object that is represented by the System.Linq.Expressions.Expression expression.
Declaration
public static MvcHtmlString EditorFor<TModel, TValue>(this DnnHtmlHelper<TModel> html, Expression<Func<TModel, TValue>> expression)
Parameters
| Type | Name | Description |
|---|---|---|
| DnnHtmlHelper<TModel> | html | The HTML helper instance that this method extends. |
| Expression<Func<TModel, TValue>> | expression | An expression that identifies the object that contains the properties to display. |
Returns
| Type | Description |
|---|---|
| MvcHtmlString | An HTML input element for each property in the object that is represented by the expression. |
Type Parameters
| Name | Description |
|---|---|
| TModel | The type of the model. |
| TValue | The type of the value. |
EditorForModel(DnnHtmlHelper, Object)
Returns an HTML input element for each property in the model, using additional view data.
Declaration
public static MvcHtmlString EditorForModel(this DnnHtmlHelper html, object additionalViewData)
Parameters
| Type | Name | Description |
|---|---|---|
| DnnHtmlHelper | html | The HTML helper instance that this method extends. |
| System.Object | additionalViewData | An anonymous object that can contain additional view data that will be merged into the System.Web.Mvc.ViewDataDictionary`1 instance that is created for the template. |
Returns
| Type | Description |
|---|---|
| MvcHtmlString | An HTML input element for each property in the model. |
EditorForModel(DnnHtmlHelper, String, Object)
Returns an HTML input element for each property in the model, using the specified template and additional view data.
Declaration
public static MvcHtmlString EditorForModel(this DnnHtmlHelper html, string templateName, object additionalViewData)
Parameters
| Type | Name | Description |
|---|---|---|
| DnnHtmlHelper | html | The HTML helper instance that this method extends. |
| System.String | templateName | The name of the template to use to render the object. |
| System.Object | additionalViewData | An anonymous object that can contain additional view data that will be merged into the System.Web.Mvc.ViewDataDictionary`1 instance that is created for the template. |
Returns
| Type | Description |
|---|---|
| MvcHtmlString | An HTML input element for each property in the model. |
EditorForModel(DnnHtmlHelper, String, String, Object)
Returns an HTML input element for each property in the model, using the template name, HTML field name, and additional view data.
Declaration
public static MvcHtmlString EditorForModel(this DnnHtmlHelper html, string templateName, string htmlFieldName, object additionalViewData)
Parameters
| Type | Name | Description |
|---|---|---|
| DnnHtmlHelper | html | The HTML helper instance that this method extends. |
| System.String | templateName | The name of the template to use to render the object. |
| System.String | htmlFieldName | A string that is used to disambiguate the names of HTML input elements that are rendered for properties that have the same name. |
| System.Object | additionalViewData | An anonymous object that can contain additional view data that will be merged into the System.Web.Mvc.ViewDataDictionary`1 instance that is created for the template. |
Returns
| Type | Description |
|---|---|
| MvcHtmlString | An HTML input element for each property in the model. |
EditorForModel(DnnHtmlHelper, String, String)
Returns an HTML input element for each property in the model, using the specified template name and HTML field name.
Declaration
public static MvcHtmlString EditorForModel(this DnnHtmlHelper html, string templateName, string htmlFieldName)
Parameters
| Type | Name | Description |
|---|---|---|
| DnnHtmlHelper | html | The HTML helper instance that this method extends. |
| System.String | templateName | The name of the template to use to render the object. |
| System.String | htmlFieldName | A string that is used to disambiguate the names of HTML input elements that are rendered for properties that have the same name. |
Returns
| Type | Description |
|---|---|
| MvcHtmlString | An HTML input element for each property in the model and in the named template. |
EditorForModel(DnnHtmlHelper, String)
Returns an HTML input element for each property in the model, using the specified template.
Declaration
public static MvcHtmlString EditorForModel(this DnnHtmlHelper html, string templateName)
Parameters
| Type | Name | Description |
|---|---|---|
| DnnHtmlHelper | html | The HTML helper instance that this method extends. |
| System.String | templateName | The name of the template to use to render the object. |
Returns
| Type | Description |
|---|---|
| MvcHtmlString | An HTML input element for each property in the model and in the specified template. |
EditorForModel(DnnHtmlHelper)
Returns an HTML input element for each property in the model.
Declaration
public static MvcHtmlString EditorForModel(this DnnHtmlHelper html)
Parameters
| Type | Name | Description |
|---|---|---|
| DnnHtmlHelper | html | The HTML helper instance that this method extends. |
Returns
| Type | Description |
|---|---|
| MvcHtmlString | An HTML input element for each property in the model. |