Skip to content

Commit 9331d01

Browse files
Update README.md
1 parent 5d6cfe0 commit 9331d01

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

README.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -70,29 +70,30 @@ ReactDOM.render(
7070
- `relativeTerms` (optional)
7171
- Takes an array of 2 relative terms to be used in the relative date select dropdown menu
7272
```javascript
73-
relativeTerms=["ago", "from now"]
73+
relativeTerms={["ago", "from now"]}
7474
```
7575
- `relativeIntervals` (optional)
7676
- Takes an array of relative intervals to be used in the relative date select dropdown menu
7777
```javascript
78-
relativeIntervals=["15 minutes", "1 hour"]
78+
relativeIntervals={["15 minutes", "1 hour"]}
7979
```
8080
- `quickSelectTerms` (optional)
8181
- Takes an array of relative terms to be used in the quick select dropdown menu
8282
```javascript
83-
quickSelectTerms=["ago", "from now"]
83+
quickSelectTerms={["ago", "from now"]}
8484
8585
- `quickSelectIntervals` (optional)
8686
- Takes an array of relative intervals to be used in the quick select dropdown menu
8787
```javascript
88-
quickSelectIntervals=["last", "next"]
88+
quickSelectIntervals={["last", "next"]}
8989

9090
- `commonlyUsedText` (optional)
9191
- Takes an array of relative intervals to be used in the quick select dropdown menu
9292
```javascript
93-
commonlyUsedText=["last 20 minutes", "next 1 hour"]
93+
commonlyUsedText={["last 20 minutes", "next 1 hour"]}
9494
9595
## Customization
9696
- Utilizes materialUI elements
9797
- Compatible with any materialUI `createMuiTheme()` object configuration
9898
- Add custom date formatters (11/2/2000 vs November 2, 2000)
99+
- Add custom menu text and preset time options

0 commit comments

Comments
 (0)