C# Class jQueryApi.jQueryValidator

显示文件 Open project: volkanceylan/Serenity Class Usage Examples

Private Properties

Property Type Description
AddClassRules void
AddClassRules void
AddMethod void
AddMethod void
Format string
GetInvalidFieldCount int
SetDefaults void
ValidateElement bool
ValidateElement bool
ValidateForm bool
jQueryValidator System

Public Methods

Method Description
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.

Private Methods

Method Description
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

Method Details

Optional() public static method

Checks if the current element is optional.
public static Optional ( Element element ) : bool
element System.Html.Element The element to validate
return bool

ResetForm() public method

Resets the controlled form
public ResetForm ( ) : void
return void

ShowErrors() public method

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.
return void