Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision cda08805

Von Bernd Bleßmann vor mehr als 3 Jahren hinzugefügt

  • ID cda088059077643caf3167ad88cf389ab9945eda
  • Vorgänger 7e435d9f
  • Nachfolger 4cc35cdc

js-Validator: Kommentar-Update

Unterschiede anzeigen:

js/kivi.Validator.js
5 5
  // 'selector'. Elements that should be validated must have an
6 6
  // attribute named "data-validate" which is set to a space-separated
7 7
  // list of tests to perform. Additionally, the attribute
8
  // "data-title" must be set to a human-readable name of the field
9
  // that can be shown as part of an error message.
8
  // "data-title" can be set to a human-readable name of the field
9
  // that can be shown in front of an error message.
10 10
  //
11 11
  // Supported validation tests are:
12 12
  // - "required": the field must be set (its .val() must not be empty)
13
  // - "number": the field must be in number format (its .val() must in the right format)
14
  // - "date": the field must be in date format (its .val() must in the right format)
15
  // - "time": the field must be in time format (its .val() must in the right format)
13 16
  //
14 17
  // The validation will abort and return "false" as soon as
15 18
  // validation routine fails.

Auch abrufbar als: Unified diff