SolidOS / SolidOS/solid-ui

DateTimeField min and max datetime offsets

Aperta
#136 0 commenti 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 optional set for the minimum and/or maximum datetimes based on an offset (in seconds) from now(), so I can define a valid datetime range around the current time.

Acceptance Criteria

  1. In a Form Model, the 'mindatetimeOffset' and/or 'maxdatetimeOffset' can be optionally defined for a DateTimeField. The offsets are specified in seconds.
  2. When the form is rendered, the valid date range is determined as:
    `(now - mindatetimeOffset) <= entered datetime <= (now + maxdatetimeOffset)
  3. If the entered datetime is outside of the valid datetime range, an error is displayed.

Example Form Model

ource: {Your WebID}

Dev Notes

  • If both a hardcoded and an offset datetime are provided (e.g., ui:maxValue and ui:maxdatetimeOffset), the hardcoded datetime takes precedence.

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.