TIWCGJQValidateOptions Class
Validate options.
IWCGJQCommon.TIWCGJSon
IWCGJQControl.TIWCGJQValidateOptions
IWCGJQDatePicker.TIWCGJQDatePickerValidateOptions
IWCGJQDropDown.TIWCGJQDropDownValidateOptions
IWCGJQTimePicker.TIWCGJQTimePickerValidateOptions
The TIWCGJQValidateOptions type exposes the following members.
Name | Description | |
---|---|---|
![]() | Create(TCollection) | |
![]() | CreateSingle(TPersistent,string) | |
![]() | Destroy | Represents the destructor of the TIWCGJQValidateOptions class. (Overrides TIWCGJSon.Destroy.) |
Name | Description | |
---|---|---|
![]() | AdditionalScript | Represents property |
![]() | CGJSContainer | Represents property |
![]() | ClassData | Represents property |
![]() | Debug | Enables debug mode. If true, the form is not submitted and certain errors are displayed on the console (will check if a window.console property exists). Try to enable when a form is just submitted instead of validation stopping the submit. |
![]() | Enable | Enable or Disable the plugin. |
![]() | ErrorClass | Use this class to create error labels, to look for existing error labels and to add it to invalid elements. |
![]() | ErrorContainer | Hide and show this container when validating. |
![]() | ErrorContainerControl | Show the error in the control. |
![]() | ErrorElement | Use this element type to create error messages and to look for existing error messages. The default, “label”, has the advantage of creating a meaningful link between error message and invalid field using the for attribute (which is always used, no matter the element type). |
![]() | ErrorElementPositionOpts | Represents property |
![]() | ErrorLabelContainer | Hide and show this container when validating. |
![]() | FocusCleanup | If enabled, removes the errorClass from the invalid elements and hides all errors messages whenever the element is focused. Avoid combination with focusInvalid. |
![]() | FocusInvalid | Focus the last active or first invalid element on submit via validator.focusInvalid(). The last active element is the one that had focus when the form was submitted, avoiding to steal its focus. If there was no element focused, the first one in the form gets it, unless this option is turned off. |
![]() | FormID | Represents property |
![]() | Groups | Specify grouping of error messages. A group consists of an arbitrary group name as the key and a space separated list of element names as the value. Use errorPlacement to control where the group message is placed. |
![]() | Ignore | Elements to ignore when validating, simply filtering them out. jQuery’s not-method is used, therefore everything that is accepted by not() can be passed as this option. Inputs of type submit and reset are always ignored, so are disabled elements. |
![]() | IgnoreTitle | Set to skip reading messages from the title attribute, helps to avoid issues with Google Toolbar; default is false for compability, the message-from-title is likely to be completely removed in a future release. |
![]() | InstList | Represents property |
![]() | IsStored | Represents property |
![]() | IsValid | Gets the result of the validation. |
![]() | JSon | Return the Interface of SuperObject (ISuperObject) (Inherited from TIWCGJSon.) |
![]() | JSonEvents[string] | Represents property |
![]() | List | Represents property |
![]() | MemberList | Represents property |
![]() | Meta | Represents property |
![]() | OnClick | Validate checkboxes and radio buttons on click. |
![]() | OnClickFn | Represents property |
![]() | OnErrorPlacement | Customize placement of created error labels. First argument: The created error label as a jQuery object. Second argument: The invalid element as a jQuery object. |
![]() | OnFocusIn | Represents property |
![]() | OnFocusOut | Validate elements (except checkboxes/radio buttons) on blur. If nothing is entered, all rules are skipped, except when the field was already marked as invalid. |
![]() | OnFocusOutFn | Represents property |
![]() | OnHighlight | How to highlight invalid fields. Override to decide which fields and how to highlight. |
![]() | OnInvalidHandler | Callback for custom code when an invalid form is submitted. Called with a event object as the first argument, and the validator as the second. |
![]() | OnKeyUp | Validate elements on keyup. As long as the field is not marked as invalid, nothing happens. Otherwise, all rules are checked on each key up event. |
![]() | OnKeyupFn | Represents property |
![]() | OnShowErrors | A custom message display handler. Gets the map of errors as the first argument and and array of errors as the second, called in the context of the validator object. The arguments contain only those elements currently validated, which can be a single element when doing validation onblur/keyup. |
![]() | OnSubmit | Validate the form on submit. |
![]() | OnSubmitHandler | Callback for handling the actual submit when the form is valid. Gets the form as the only argument. Replaces the default submit. The right place to submit a form via Ajax after it validated. |
![]() | OnSuccess | If specified, the error label is displayed to show a valid element. Its called with the label (as a jQuery object) and the validated input (as a DOM element). |
![]() | OnUnhighlight | Called to revert changes made by option highlight, same arguments as highlight. |
![]() | Owner | Represents property |
![]() | PluginVersion | Gets the version of jquery plugin. |
![]() | PropCount | Represents property |
![]() | PropIndexByName[string] | Represents property |
![]() | PropList | Represents property |
![]() | PropName | Represents property |
![]() | PropNameByIndex[Integer] | Represents property |
![]() | Rules | Key/value pairs defining custom rules. Key is the name of an element (or a group of checkboxes/radio buttons), value is an object consisting of rule/parameter pairs or a plain String. Can be combined with class/attribute/data rules. Each rule can be specified as having a depends-property to apply the rule only in certain conditions. See the second example below for details. |
![]() | SObj | Represents property |
![]() | ValidateCSSFile | Represents property |
![]() | ValidateOnFocusOut | Represents property |
![]() | ValidClass | This class is added to an element after it was validated and considered valid. |
![]() | Wrapper | Wrap error labels with the specified element. Useful in combination with errorLabelContainer to create a list of error messages. |
Name | Description | |||
---|---|---|---|---|
![]() | AddBooleanMember(string,Boolean,Boolean,Boolean) | Represents method | ||
![]() | AddColorMember(string,TIWCGColor,Boolean,Boolean) | Represents method | ||
![]() | AddCurrencyMember(string,Currency,Boolean,Boolean) | Represents method | ||
![]() | AddDoubleMember(string,Double,Boolean,Boolean) | Represents method | ||
![]() | AddDynObjListMember(string,Boolean,Boolean) | Represents method | ||
![]() | AddEnumMember(string,string[],Byte,Boolean,Boolean) | Represents method | ||
![]() | AddEnumSetMember(string,string[],Void,Word,Boolean,Boolean) | Represents method | ||
![]() | AddFuncMember(string,string,string,Boolean,TIWCGJSonFuncClass,Boolean,Boolean) | Represents method | ||
![]() | AddHTML5(TIWHTMLTag) | Represents method | ||
![]() | AddIntegerMember(string,Integer,Boolean,Boolean) | Represents method | ||
![]() | AddJSonMember(string,TCGJSon,Boolean,Boolean) | Represents method | ||
![]() | AddMembers | The procedure add jquery properties.
| ||
![]() | AddMethod(string,string) | Overloaded. Procedure allow to add the custom methods of validations. | ||
![]() | AddMethod(string,string,string,boolean) | Overloaded. Procedure allow to add the custom methods of validations. | ||
![]() | AddObjListMember(string,TIWCGJSonListClass,Boolean,Boolean,Boolean) | Represents method | ||
![]() | AddObjMember(string,TIWCGJSonClass,Boolean,Boolean,Boolean) | Represents method | ||
![]() | AddSimpleArrayMember(string,Boolean,Boolean,Boolean) | Represents method | ||
![]() | AddStringMember(string,string,Boolean,Boolean) | Represents method | ||
![]() | AddValidateJSFiles(TStrings) | Represents method | ||
![]() | AddVariantMember(string,Variant,Boolean,Boolean) | Represents method | ||
![]() | AfterConstruction | Represents method | ||
![]() | Assign(TPersistent) | Represents method | ||
![]() | CheckJSonMember(Integer) | Represents method | ||
![]() | ConvertEnumToString(string) | Represents method | ||
![]() | ConvertSetToString(string,TCGStringArray) | Represents method | ||
![]() | FreeJSonObj(Integer) | Overloaded. Represents method | ||
![]() | FreeJSonObj(string) | Overloaded. Represents method | ||
![]() | GetBooleanValue(Integer) | Represents method | ||
![]() | GetCGJSContainer | Represents method | ||
![]() | GetColorValue(Integer) | Represents method | ||
![]() | GetCurrencyValue(Integer) | Represents method | ||
![]() | GetCustomJq(string,ISuperObject) | Represents method | ||
![]() | GetDoubleValue(Integer) | Represents method | ||
![]() | GetDynObjListValue(Integer) | Represents method | ||
![]() | GetEnumAsString(Integer) | Represents method | ||
![]() | GetEnumerValue(Integer) | Represents method | ||
![]() | GetEnumSetValue(Integer,Pointer) | Represents method | ||
![]() | GetFixedScript(TIWCGJSonFunc,Boolean) | Represents method | ||
![]() | GetFixedScriptOnFocusout | Represents method | ||
![]() | GetFormID | Represents method | ||
![]() | GetFuncValue(Integer) | Represents method | ||
![]() | GetHTMLName | Represents method | ||
![]() | GetImplComponent | Represents method | ||
![]() | GetIntegerValue(Integer) | Represents method | ||
![]() | GetIsStored | Represents method | ||
![]() | GetItemIndex | Represents method | ||
![]() | GetIWCLName | Represents method | ||
![]() | GetJSon | Represents method | ||
![]() | GetJSonByType(Boolean,Boolean) | Represents method | ||
![]() | GetJSonEx(Boolean,Boolean,TIWCGResponseMemberList,Boolean) | Represents method | ||
![]() | GetJSonValue(Integer) | Represents method | ||
![]() | GetJSonValueObj(Integer) | Represents method | ||
![]() | GetMemberJSon(TCGJSonMember,ISuperObject,Boolean,Boolean,string) | Represents method | ||
![]() | GetMemberSetterHandler(TObject,TCGJSonMember) | Represents method | ||
![]() | GetMemberSetterScriptParts(TIWCGResponseMemberList,TIWCGJScript) | Represents method | ||
![]() | GetMembersJSon(TIWCGResponseMemberList,Boolean,Boolean) | Represents method | ||
![]() | GetObjListValue(Integer) | Represents method | ||
![]() | GetObjValue(Integer) | Represents method | ||
![]() | GetOwner | Represents method | ||
![]() | GetPropName | Represents method | ||
![]() | GetSimpleArrayValue(Integer) | Represents method | ||
![]() | GetStringValue(Integer) | Represents method | ||
![]() | GetVariantValue(Integer) | Represents method | ||
![]() | InternalGetJSon(TEachPropJSonProc,Boolean,Boolean,Void,Boolean,Boolean,TIWCGResponseMemberList,Boolean) | Represents method | ||
![]() ![]() | IsArray | Represents method | ||
![]() | IsBooleanStored(Integer) | Represents method | ||
![]() | IsColorStored(Integer) | Represents method | ||
![]() | IsCurrencyStored(Integer) | Represents method | ||
![]() | IsDoubleStored(Integer) | Represents method | ||
![]() | IsEnumerStored(Integer) | Represents method | ||
![]() | IsEnumSetStored(Integer) | Represents method | ||
![]() | IsFuncStored(Integer) | Represents method | ||
![]() | IsIntegerStored(Integer) | Represents method | ||
![]() | IsJSonObjStored(string) | Represents method | ||
![]() | IsJSonStored(Integer) | Represents method | ||
![]() | IsObjStored(Integer) | Represents method | ||
![]() | IsStringStored(Integer) | Represents method | ||
![]() | IsVariantStored(Integer) | Represents method | ||
![]() ![]() | JSonEscape | Represents method | ||
![]() ![]() | JSonIdent | Represents method | ||
![]() ![]() | JSonNameQuote | Represents method | ||
![]() | jsValidate(Boolean) | Represents method | ||
![]() | ResetProps | Represents method | ||
![]() | SetBooleanValue(Integer,Boolean) | Represents method | ||
![]() | SetColorValue(Integer,TIWCGColor) | Represents method | ||
![]() | SetCurrencyValue(Integer,Currency) | Represents method | ||
![]() | SetDoubleValue(Integer,Double) | Represents method | ||
![]() | SetDynObjListValue(Integer,TIWCGJSonDynObjList) | Represents method | ||
![]() | SetEnumerValue(Integer,Byte) | Represents method | ||
![]() | SetEnumSetValue(Integer,Pointer) | Represents method | ||
![]() | SetFuncValue(Integer,TIWCGJSonFunc) | Represents method | ||
![]() | SetIntegerValue(Integer,Integer) | Represents method | ||
![]() | SetJSonValue(Integer,TCGJSon) | Represents method | ||
![]() | SetObjListValue(Integer,TIWCGJSonList) | Represents method | ||
![]() | SetObjValue(Integer,TIWCGJSon) | Represents method | ||
![]() | SetSimpleArrayValue(Integer,TIWCGJSonSimpleArray) | Represents method | ||
![]() | SetStringValue(Integer,string) | Represents method | ||
![]() | SetVariantValue(Integer,Variant) | Represents method | ||
![]() | StoreProperty(PPropInfo,TObject) | Represents method | ||
![]() | SupportsSetter(TObject,TCGJSonMember) | Represents method | ||
![]() | ValFormAndUpdateHiddenInput(Boolean) | Method to validate the control and update the value of hidden input. | ||
![]() | Validate(Boolean) | Manually call the validate method. This method will validate and highlight the control. |