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
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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