DateField min and max date offsets
Aperta
@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 dates based on an offset (in days) from today's date, so I can define a valid date range around todays date.
Acceptance Criteria
- In a Form Model, the 'mindateOffset' and/or 'maxdateOffset' can be optionally defined for a DateField. The offsets are specified in days.
- When the form is rendered, the valid date range is determined as:
`(today - mindateOffset) <= entered date <= (today + maxdateOffset) - If the entered date is outside of the valid date range, an error is displayed.
Example Form Model
- Form Model: https://solidsdk.inrupt.net/public/FormLanguage/examples/FormModel/DateField.ttl
- Data Source: {Your WebID}
Dev Notes
- If both a hardcoded and an offset date are provided (e.g., ui:maxValue and ?:maxdateOffset), the hardcoded date takes precedence.
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Valutazione
Questa issue non è ancora stata valutata.