C# Class ServiceStack.Html.HtmlHelper

Exibir arquivo Open project: CSGOpenSource/ServiceStack Class Usage Examples

Public Properties

Property Type Description
HtmlExtensions List
ValidationInputCssClassName string
ValidationInputValidCssClassName string
ValidationMessageCssClassNames string
ValidationMessageValidCssClassName string
ValidationSuccessCssClassNames string
ValidationSummaryCssClassNames string
ValidationSummaryValidCssClassName string

Private Properties

Property Type Description
EncodeLegacy string
EvalBoolean bool
EvalString string
EvalString string
GetHtmlEncoder HtmlEncoder
GetModelStateValue object

Public Methods

Method Description
AnonymousObjectToHtmlAttributes ( object htmlAttributes ) : RouteValueDictionary
AntiForgeryToken ( ) : ServiceStack.Html.MvcHtmlString
AntiForgeryToken ( string salt ) : ServiceStack.Html.MvcHtmlString
AntiForgeryToken ( string salt, string domain, string path ) : ServiceStack.Html.MvcHtmlString
AttributeEncode ( object value ) : string
AttributeEncode ( string value ) : string
Debug ( object model ) : string
EnableClientValidation ( ) : void
EnableClientValidation ( bool enabled ) : void
EnableUnobtrusiveJavaScript ( ) : void
EnableUnobtrusiveJavaScript ( bool enabled ) : void
Encode ( object value ) : string
Encode ( string value ) : string
FormatValue ( object value, string format ) : string
GenerateIdFromName ( string name ) : string
GenerateIdFromName ( string name, string idAttributeDotReplacement ) : string
GetErrorMessage ( ) : ServiceStack.Html.MvcHtmlString
GetErrorStatus ( ) : ResponseStatus
GetFieldError ( string errorName ) : ResponseError
GetFormMethodString ( FormMethod method ) : string
GetInputTypeString ( InputType inputType ) : string
GetMethod ( string methodName ) : MethodInfo
GetUnobtrusiveValidationAttributes ( string name ) : object>.IDictionary
GetUnobtrusiveValidationAttributes ( string name, ModelMetadata metadata ) : object>.IDictionary
HasFieldError ( string errorName ) : bool
HtmlHelper ( ) : System
HttpMethodOverride ( HttpVerbs httpVerb ) : ServiceStack.Html.MvcHtmlString
HttpMethodOverride ( string httpMethod ) : ServiceStack.Html.MvcHtmlString
Init ( IHttpRequest httpReq, IHttpResponse httpRes, IViewEngine viewEngine, ViewDataDictionary viewData, HtmlHelper htmlHelper ) : void
Init ( IViewEngine viewEngine, IRequest httpReq, IResponse httpRes, IRazorView razorPage, object>.Dictionary scopeArgs = null, ViewDataDictionary viewData = null ) : void
Init ( ServiceStack.Support.Markdown.MarkdownPage markdownPage, object>.Dictionary scopeArgs, bool renderHtml, ViewDataDictionary viewData, HtmlHelper htmlHelper ) : void
Partial ( string viewName ) : ServiceStack.Html.MvcHtmlString
Partial ( string viewName, object model ) : ServiceStack.Html.MvcHtmlString
Raw ( object content ) : ServiceStack.Html.MvcHtmlString
SetModel ( object model ) : void

Private Methods

Method Description
EncodeLegacy ( object value ) : string
EvalBoolean ( string key ) : bool
EvalString ( string key ) : string
EvalString ( string key, string format ) : string
GetHtmlEncoder ( ) : HtmlEncoder
GetModelStateValue ( string key, Type destinationType ) : object

Method Details

AnonymousObjectToHtmlAttributes() public static method

public static AnonymousObjectToHtmlAttributes ( object htmlAttributes ) : RouteValueDictionary
htmlAttributes object
return RouteValueDictionary

AntiForgeryToken() public method

public AntiForgeryToken ( ) : ServiceStack.Html.MvcHtmlString
return ServiceStack.Html.MvcHtmlString

AntiForgeryToken() public method

public AntiForgeryToken ( string salt ) : ServiceStack.Html.MvcHtmlString
salt string
return ServiceStack.Html.MvcHtmlString

AntiForgeryToken() public method

public AntiForgeryToken ( string salt, string domain, string path ) : ServiceStack.Html.MvcHtmlString
salt string
domain string
path string
return ServiceStack.Html.MvcHtmlString

AttributeEncode() public method

public AttributeEncode ( object value ) : string
value object
return string

AttributeEncode() public method

public AttributeEncode ( string value ) : string
value string
return string

Debug() public method

public Debug ( object model ) : string
model object
return string

EnableClientValidation() public method

public EnableClientValidation ( ) : void
return void

EnableClientValidation() public method

public EnableClientValidation ( bool enabled ) : void
enabled bool
return void

EnableUnobtrusiveJavaScript() public method

public EnableUnobtrusiveJavaScript ( ) : void
return void

EnableUnobtrusiveJavaScript() public method

public EnableUnobtrusiveJavaScript ( bool enabled ) : void
enabled bool
return void

Encode() public method

public Encode ( object value ) : string
value object
return string

Encode() public method

public Encode ( string value ) : string
value string
return string

FormatValue() public method

public FormatValue ( object value, string format ) : string
value object
format string
return string

GenerateIdFromName() public static method

public static GenerateIdFromName ( string name ) : string
name string
return string

GenerateIdFromName() public static method

public static GenerateIdFromName ( string name, string idAttributeDotReplacement ) : string
name string
idAttributeDotReplacement string
return string

GetErrorMessage() public method

public GetErrorMessage ( ) : ServiceStack.Html.MvcHtmlString
return ServiceStack.Html.MvcHtmlString

GetErrorStatus() public method

public GetErrorStatus ( ) : ResponseStatus
return ResponseStatus

GetFieldError() public method

public GetFieldError ( string errorName ) : ResponseError
errorName string
return ResponseError

GetFormMethodString() public static method

public static GetFormMethodString ( FormMethod method ) : string
method FormMethod
return string

GetInputTypeString() public static method

public static GetInputTypeString ( InputType inputType ) : string
inputType InputType
return string

GetMethod() public static method

public static GetMethod ( string methodName ) : MethodInfo
methodName string
return System.Reflection.MethodInfo

GetUnobtrusiveValidationAttributes() public method

public GetUnobtrusiveValidationAttributes ( string name ) : object>.IDictionary
name string
return object>.IDictionary

GetUnobtrusiveValidationAttributes() public method

public GetUnobtrusiveValidationAttributes ( string name, ModelMetadata metadata ) : object>.IDictionary
name string
metadata ModelMetadata
return object>.IDictionary

HasFieldError() public method

public HasFieldError ( string errorName ) : bool
errorName string
return bool

HtmlHelper() public method

public HtmlHelper ( ) : System
return System

HttpMethodOverride() public method

public HttpMethodOverride ( HttpVerbs httpVerb ) : ServiceStack.Html.MvcHtmlString
httpVerb HttpVerbs
return ServiceStack.Html.MvcHtmlString

HttpMethodOverride() public method

public HttpMethodOverride ( string httpMethod ) : ServiceStack.Html.MvcHtmlString
httpMethod string
return ServiceStack.Html.MvcHtmlString

Init() public method

public Init ( IHttpRequest httpReq, IHttpResponse httpRes, IViewEngine viewEngine, ViewDataDictionary viewData, HtmlHelper htmlHelper ) : void
httpReq IHttpRequest
httpRes IHttpResponse
viewEngine IViewEngine
viewData ViewDataDictionary
htmlHelper HtmlHelper
return void

Init() public method

public Init ( IViewEngine viewEngine, IRequest httpReq, IResponse httpRes, IRazorView razorPage, object>.Dictionary scopeArgs = null, ViewDataDictionary viewData = null ) : void
viewEngine IViewEngine
httpReq IRequest
httpRes IResponse
razorPage IRazorView
scopeArgs object>.Dictionary
viewData ViewDataDictionary
return void

Init() public method

public Init ( ServiceStack.Support.Markdown.MarkdownPage markdownPage, object>.Dictionary scopeArgs, bool renderHtml, ViewDataDictionary viewData, HtmlHelper htmlHelper ) : void
markdownPage ServiceStack.Support.Markdown.MarkdownPage
scopeArgs object>.Dictionary
renderHtml bool
viewData ViewDataDictionary
htmlHelper HtmlHelper
return void

Partial() public method

public Partial ( string viewName ) : ServiceStack.Html.MvcHtmlString
viewName string
return ServiceStack.Html.MvcHtmlString

Partial() public method

public Partial ( string viewName, object model ) : ServiceStack.Html.MvcHtmlString
viewName string
model object
return ServiceStack.Html.MvcHtmlString

Raw() public method

public Raw ( object content ) : ServiceStack.Html.MvcHtmlString
content object
return ServiceStack.Html.MvcHtmlString

SetModel() public method

public SetModel ( object model ) : void
model object
return void

Property Details

HtmlExtensions public_oe static_oe property

public static List HtmlExtensions
return List

ValidationInputCssClassName public_oe static_oe property

public static string ValidationInputCssClassName
return string

ValidationInputValidCssClassName public_oe static_oe property

public static string ValidationInputValidCssClassName
return string

ValidationMessageCssClassNames public_oe static_oe property

public static string ValidationMessageCssClassNames
return string

ValidationMessageValidCssClassName public_oe static_oe property

public static string ValidationMessageValidCssClassName
return string

ValidationSuccessCssClassNames public_oe static_oe property

public static string ValidationSuccessCssClassNames
return string

ValidationSummaryCssClassNames public_oe static_oe property

public static string ValidationSummaryCssClassNames
return string

ValidationSummaryValidCssClassName public_oe static_oe property

public static string ValidationSummaryValidCssClassName
return string