C# 클래스 HermaFx.MvcDemo.AlertsBarExtensions

Allows delivering status information to users thru an status bar similiar to the one provided by ValidationSummary.
Partially inspired by http://completedevelopment.blogspot.com/2010/12/status-message-handling-in-mvc.html
파일 보기 프로젝트 열기: evicertia/HermaFx 1 사용 예제들

공개 메소드들

메소드 설명
AddErrorMessage ( this @this, string message ) : void
AddInfoMessage ( this @this, string message ) : void
AddSuccessMessage ( this @this, string message ) : void
AddWarningMessage ( this @this, string message ) : void
AlertSummary ( this @this, string validationMessage = null, bool includePropertyErrors = true, object htmlAttributes = null ) : System.Web.Mvc.MvcHtmlString

Status (Info+Success+Alert or Errors if any) summary

비공개 메소드들

메소드 설명
GetDataFor ( System.Web.Mvc.ViewContext context, BarData bar ) : IList
GetTempDataKeyFor ( BarData bar ) : string
_AddMessage ( TempDataDictionary tempData, BarData bar, string message ) : void
_AddMessages ( TempDataDictionary tempData, BarData bar, IEnumerable messages ) : void
_GetUserErrorMessageOrDefault ( System.Web.Mvc.ModelError error, System.Web.Mvc.ModelState modelState ) : string
_ParseModelState ( ModelStateDictionary modelstate ) : IEnumerable
_RenderStatusBar ( this @this, BarData bar, string message, bool includePropertyErrors, object htmlAttributes ) : System.Web.Mvc.MvcHtmlString

메소드 상세

AddErrorMessage() 공개 정적인 메소드

public static AddErrorMessage ( this @this, string message ) : void
@this this
message string
리턴 void

AddInfoMessage() 공개 정적인 메소드

public static AddInfoMessage ( this @this, string message ) : void
@this this
message string
리턴 void

AddSuccessMessage() 공개 정적인 메소드

public static AddSuccessMessage ( this @this, string message ) : void
@this this
message string
리턴 void

AddWarningMessage() 공개 정적인 메소드

public static AddWarningMessage ( this @this, string message ) : void
@this this
message string
리턴 void

AlertSummary() 공개 정적인 메소드

Status (Info+Success+Alert or Errors if any) summary
public static AlertSummary ( this @this, string validationMessage = null, bool includePropertyErrors = true, object htmlAttributes = null ) : System.Web.Mvc.MvcHtmlString
@this this
validationMessage string
includePropertyErrors bool
htmlAttributes object
리턴 System.Web.Mvc.MvcHtmlString