Пример #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="JQueryValidationGenerator"/> class.
 /// </summary>
 /// <param name="configuration">The configuration.</param>
 /// <param name="inputElementType">Type of the input element.</param>
 /// <param name="propertyNameToElementId">The attributes.</param>
 public JQueryValidationGenerator(JQueryValidator.JQueryConfiguration configuration, InputElementType inputElementType, Func <string, string> propertyNameToElementId)
 {
     _inputElementType        = inputElementType;
     _propertyNameToElementId = propertyNameToElementId;
     _config = configuration;
 }
Пример #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="JQueryValidationGenerator"/> class.
 /// </summary>
 /// <param name="configuration">The configuration.</param>
 /// <param name="inputElementType">Type of the input element.</param>
 /// <param name="propertyNameToElementId">The attributes.</param>
 public JQueryValidationGenerator(JQueryValidator.JQueryConfiguration configuration, InputElementType inputElementType, Func<string, string> propertyNameToElementId)
 {
     _inputElementType = inputElementType;
     _propertyNameToElementId = propertyNameToElementId;
     _config = configuration;
 }