JediValidate
JediValidate - validation
Constructor Summary
Public Constructor | ||
public |
constructor(root: HTMLElement, options: object) JediValidate |
Member Summary
Private Members | ||
private |
Object with error message |
|
private |
Translation dictionary |
|
private |
Object with error message |
|
private |
Object with fields |
|
private |
handleSubmit(event: Event): * Handle form submit |
|
private |
Object with inputs nodes |
|
private |
Object with message nodes |
|
private |
Validate methods |
|
private |
Elements |
|
private |
options: {ajax: {url: string, enctype: string, sendType: string, method: string}, rules: {}, messages: {}, containers: {parent: string, message: string, baseMessage: string}, states: {error: string, valid: string, pristine: string, dirty: string}, formStatePrefix: string, callbacks: {success: function, error: function}, clean: boolean, redirect: boolean, language: string, translations: {}} Validator options |
|
private |
root: Element Root element |
|
private |
Validator rules |
|
private |
Translate |
Method Summary
Public Methods | ||
public |
Add rule to validator |
|
public |
addToDictionary(sourceText: string, translatedText: string, language: string) Add localization to JediValidate |
|
public |
Collect data |
Private Methods | ||
private |
handleInputChange(name: string) Handle input change |
|
private |
handleInputInput(name: string) Handle input |
|
private |
ready() Ready |
|
private |
Send form |
Public Constructors
Private Members
private inputs: Object<string, HTMLInputElement|HTMLSelectElement|Array> source
Object with inputs nodes
private options: {ajax: {url: string, enctype: string, sendType: string, method: string}, rules: {}, messages: {}, containers: {parent: string, message: string, baseMessage: string}, states: {error: string, valid: string, pristine: string, dirty: string}, formStatePrefix: string, callbacks: {success: function, error: function}, clean: boolean, redirect: boolean, language: string, translations: {}} source
Validator options
Public Methods
public addToDictionary(sourceText: string, translatedText: string, language: string) source
Add localization to JediValidate
Private Methods
private handleInputChange(name: string) source
Handle input change
Params:
Name | Type | Attribute | Description |
name | string |