C# Class Core.Forms.Extensions.FormElementsExtensions

Afficher le fichier Open project: coreframework/Core-Framework

Méthodes publiques

Свойство Type Description
CaptchaDefaultHeight System.Int32
CaptchaDefaultWidth System.Int32
ElementValuesSeparator char
FormElementNameFormat String

Méthodes publiques

Méthode Description
FormElementRenderer ( this html, FormElement model, System.Web.Mvc.FormCollection collection ) : System.Web.Mvc.MvcHtmlString

Renders html depends on model's type (i.e. textbox, radion buttons)

Private Methods

Méthode Description
ParseElementValuesForDropDown ( String values, String selectedValue ) : IEnumerable

Parses the element values for drop down list.

ParseElementValuesForRadioButtons ( String values, String elementName ) : String>.Dictionary

Parses the element values for radio buttons.

RenderElementByType ( HtmlHelper html, FormElement model, String elementName, String elementValue ) : String

Method Details

FormElementRenderer() public static méthode

Renders html depends on model's type (i.e. textbox, radion buttons)
public static FormElementRenderer ( this html, FormElement model, System.Web.Mvc.FormCollection collection ) : System.Web.Mvc.MvcHtmlString
html this The HTML.
model FormElement The model.
collection System.Web.Mvc.FormCollection The collection.
Résultat System.Web.Mvc.MvcHtmlString

Property Details

CaptchaDefaultHeight public_oe static_oe property

public static Int32,System CaptchaDefaultHeight
Résultat System.Int32

CaptchaDefaultWidth public_oe static_oe property

public static Int32,System CaptchaDefaultWidth
Résultat System.Int32

ElementValuesSeparator public_oe static_oe property

public static char ElementValuesSeparator
Résultat char

FormElementNameFormat public_oe static_oe property

public static String FormElementNameFormat
Résultat String