C# 클래스 Castle.MonoRail.Framework.Helpers.ValidationHelper

Helper that provides client-side validation.
The javascript core lib is extension of Peter Bailey's fValidate(http://www.peterbailey.net/fValidate/).
상속: AbstractHelper
파일 보기 프로젝트 열기: nats/castle-1.0.3-mono 1 사용 예제들

공개 메소드들

메소드 설명
GetValidationTriggerFunction ( ) : String

Returns the form validation function.

GetValidationTriggerFunction ( String formElement ) : String

Returns the form validation function.

GetValidationTriggerFunction ( String formElement, IDictionary options ) : String

Returns the form validation function where you can override the options:

The options that can be overriden: confirm (bool), disable (bool), groupError (bool), errorMode (int)

InstallScripts ( ) : String

Automatic Script installer.

InstallScripts ( string locale ) : string

Installs the scripts.

SetSubmitOptions ( IDictionary parameters ) : void

Configure the submit and validation options.

SetSubmitOptions ( bool confirm, bool disable, bool groupError, int errorMode ) : void

Configure the submit and validation options.

ValidationHelper ( ) : System

Constructor.

메소드 상세

GetValidationTriggerFunction() 공개 메소드

Returns the form validation function.
public GetValidationTriggerFunction ( ) : String
리턴 String

GetValidationTriggerFunction() 공개 메소드

Returns the form validation function.
public GetValidationTriggerFunction ( String formElement ) : String
formElement String Javascript expression that return the desired form.
리턴 String

GetValidationTriggerFunction() 공개 메소드

Returns the form validation function where you can override the options:
The options that can be overriden: confirm (bool), disable (bool), groupError (bool), errorMode (int)
public GetValidationTriggerFunction ( String formElement, IDictionary options ) : String
formElement String Javascript expression that return the desired form.
options IDictionary Custom options
리턴 String

InstallScripts() 공개 메소드

Automatic Script installer.
public InstallScripts ( ) : String
리턴 String

InstallScripts() 공개 메소드

Installs the scripts.
public InstallScripts ( string locale ) : string
locale string The locale.
리턴 string

SetSubmitOptions() 공개 메소드

Configure the submit and validation options.
public SetSubmitOptions ( IDictionary parameters ) : void
parameters IDictionary
리턴 void

SetSubmitOptions() 공개 메소드

Configure the submit and validation options.
public SetSubmitOptions ( bool confirm, bool disable, bool groupError, int errorMode ) : void
confirm bool True for submit confirmation. Otherwise, false.
disable bool True for submit buttons disabling.
groupError bool True for error grouping.
errorMode int representing the error mode.
리턴 void

ValidationHelper() 공개 메소드

Constructor.
public ValidationHelper ( ) : System
리턴 System