addField()

Add a field

addField(field: String, options: Object): Core

* presents a required parameter

  • field * — The field name
  • options — The field options. The options will be merged with the original validator rules if the field is already defined