Skip to content

Commit

Permalink
- Add duration to RangePicker component as #8 states
Browse files Browse the repository at this point in the history
  • Loading branch information
edwardfxiao committed Jul 27, 2023
1 parent 35a5c3d commit ef9ec47
Show file tree
Hide file tree
Showing 8 changed files with 72 additions and 9 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# 2.0.8

- Add ```duration``` to RangePicker component as #8 states

# 2.0.7

- Add ```supportDateRange``` to RangePicker component as #7 states
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ import 'react-minimal-datetime-range/lib/react-minimal-datetime-range.min.css';
placeholder={['Start Time', 'End Time']}
// markedDates={[`${todayY}-${todayM}-${todayD - 1}`, `${todayY}-${todayM}-${todayD}`]} // OPTIONAL. ['YYYY-MM-DD']
showOnlyTime={false} // default is false, only select time
// duration={2} // day count. default is 0. set end date will be add 2 days automatically when start date is picked
////////////////////
// IMPORTANT DESC //
////////////////////
Expand Down
10 changes: 10 additions & 0 deletions dist/css/index.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions example/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ const Component = () => {
// markedDates={[`${todayY}-${todayM}-${todayD - 1}`, `${todayY}-${todayM}-${todayD}`]} // OPTIONAL. ['YYYY-MM-DD']
// supportDateRange={[`2022-02-16`, `2022-12-10`]} // "YYYY-MM-DD"
// showOnlyTime={true} // default is false
// duration={2} // day count default is 0. set end date automatically when start date is picked
/>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-minimal-datetime-range",
"version": "2.0.7",
"version": "2.0.8",
"description": "A react component for date time range picker.",
"main": "index.js",
"types": "./lib/index.d.ts",
Expand Down
Loading

0 comments on commit ef9ec47

Please sign in to comment.