SolidOS / SolidOS/solid-ui

'validationError' Common Field Property

Aperta
#139 1 commento 0 reazioni 1 assegnatario Vedi su GitHub

@timbl ci sta già lavorando.

Dal 16/12/2019.

enhancement
Lingua principale
TypeScript
Stelle
153
Fork
46
Merge medio
1g 8h
PR unite (30g)
7

Descrizione

User Story

As a Form Designer, I can define the error to be displayed if a user enters invalid data in a field (e.g., integer is out of range), so it is clear to the user how to correct the validation error.

Acceptance Criteria

  1. In a Form Model, the 'validationError' property can be optionally defined for a data field, that defines the error message(s) that should be displayed is the entered data fails validation.
  2. When the form is rendered, if the entered data is found to be invalid:
    a. If the 'validationError' property is defined, the custom validation error message is displayed.
    b. If the 'validationError' property is not defined, a generic validation error message is displayed.

Dev Notes

  • validationError defined as a thing allowing the validation error messages in multiple languages to be defined:
    ui:validationError [ rdfs:label "Age must be 18 or older"@en ] ;

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.