DateTimeField min and max datetime offsets
Abierto
@timbl ya está trabajando en esto.
Desde el 16/12/2019.
enhancement
- Lenguaje dominante
- TypeScript
- Estrellas
- 153
- Forks
- 46
- Merge medio
- 1 d 8 h
- PR fusionados (30 d)
- 7
Descripción
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
- In a Form Model, the 'mindatetimeOffset' and/or 'maxdatetimeOffset' can be optionally defined for a DateTimeField. The offsets are specified in seconds.
- When the form is rendered, the valid date range is determined as:
`(now - mindatetimeOffset) <= entered datetime <= (now + maxdatetimeOffset) - If the entered datetime is outside of the valid datetime range, an error is displayed.
Example Form Model
- Form Model: https://solidsdk.inrupt.net/public/FormLanguage/examples/FormModel/DateTimeField.ttl#formRoot
- Data S
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.
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Evaluación
Este issue todavía no se ha evaluado.