C# Class Core.Forms.Extensions.FormElementsExtensions

ファイルを表示 Open project: coreframework/Core-Framework

Public Properties

Property Type Description
CaptchaDefaultHeight System.Int32
CaptchaDefaultWidth System.Int32
ElementValuesSeparator char
FormElementNameFormat String

Public Methods

Method 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

Method 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 method

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.
return System.Web.Mvc.MvcHtmlString

Property Details

CaptchaDefaultHeight public_oe static_oe property

public static Int32,System CaptchaDefaultHeight
return System.Int32

CaptchaDefaultWidth public_oe static_oe property

public static Int32,System CaptchaDefaultWidth
return System.Int32

ElementValuesSeparator public_oe static_oe property

public static char ElementValuesSeparator
return char

FormElementNameFormat public_oe static_oe property

public static String FormElementNameFormat
return String