C# Класс jQueryApi.jQueryValidator

Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
AddClassRules void
AddClassRules void
AddMethod void
AddMethod void
Format string
GetInvalidFieldCount int
SetDefaults void
ValidateElement bool
ValidateElement bool
ValidateForm bool
jQueryValidator System

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

Метод Описание
Optional ( Element element ) : bool

Checks if the current element is optional.

ResetForm ( ) : void

Resets the controlled form

ShowErrors ( System.Collections.JsDictionary errors ) : void

Shows the specified errors messages.

Приватные методы

Метод Описание
AddClassRules ( System.Collections.JsDictionary rules ) : void
AddClassRules ( string name, System.Collections.JsDictionary rules ) : void
AddMethod ( string name, jQueryValidationMethod callback ) : void
AddMethod ( string name, jQueryValidationMethod callback, string message ) : void
Format ( string template ) : string
GetInvalidFieldCount ( ) : int
SetDefaults ( jQueryValidatorOptions options ) : void
ValidateElement ( Element element ) : bool
ValidateElement ( jQueryObject element ) : bool
ValidateForm ( ) : bool
jQueryValidator ( ) : System

Описание методов

Optional() публичный статический Метод

Checks if the current element is optional.
public static Optional ( Element element ) : bool
element System.Html.Element The element to validate
Результат bool

ResetForm() публичный Метод

Resets the controlled form
public ResetForm ( ) : void
Результат void

ShowErrors() публичный Метод

Shows the specified errors messages.
public ShowErrors ( System.Collections.JsDictionary errors ) : void
errors System.Collections.JsDictionary Key/value pairs of error messages, where the keys relate to names of elements in the form, and /// the values are the error messages to display for those elements.
Результат void