DateField min and max date offsets
Offen
@timbl arbeitet bereits daran.
Seit 16.12.2019.
enhancement
- Vorherrschende Sprache
- TypeScript
- Sterne
- 153
- Forks
- 46
- Ø Merge
- 1 T. 8 Std.
- Gemergte PRs (30 T.)
- 7
Beschreibung
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.
Beitragsleitfaden
Für dieses Repository ist kein Beitragsleitfaden indexiert
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Bewertung
Dieses Issue wurde noch nicht bewertet.