Project

General

Profile

Actions

Feature #1218

closed

Add support for isValidDate attribute in DateTimePicker componnent

Added by Roman Kučera over 6 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Low
Assignee:
Roman Kučera
Category:
Frontend
Target version:
Start date:
08/20/2018
Due date:
% Done:

100%

Estimated time:
Owner:

Description

Componnent react-datetime has attribute isValidDate which can be used for disabling some dates, but our DateTimePicker which is wrapper for it does not supporting it.
Use case - User can pick only date in future, or pick only weekends for example.


Related issues

Related to IdStory Identity Manager - Task #1234: DataTimePicker validation base on isValidDate attributeClosedRoman Kučera08/31/2018

Actions
Actions #1

Updated by Roman Kučera over 6 years ago

  • Status changed from In Progress to Needs feedback
  • Assignee changed from Roman Kučera to Radek Tomiška

Implementation in branch https://github.com/bcvsolutions/CzechIdMng/tree/rkucera/1218-date-picker-valid-date
Added example how to use it into README

Actions #2

Updated by Roman Kučera over 6 years ago

  • % Done changed from 0 to 80
Actions #3

Updated by Radek Tomiška over 6 years ago

  • Category set to Frontend
  • Status changed from Needs feedback to Closed
  • Assignee changed from Radek Tomiška to Roman Kučera
  • Target version set to Malachite (9.0.0)
  • % Done changed from 80 to 100

I did test and review, it works and code looks nice. I added some doc into readme and component (parameter was missing).

Note: New property is only for FE DateTimePicker component - defines dates that can be selected. Don't forget to implement BE validation or standard FE form component validation with it together.

Actions #4

Updated by Roman Kučera over 6 years ago

  • Related to Task #1234: DataTimePicker validation base on isValidDate attribute added
Actions

Also available in: Atom PDF