Skip to content

Commit 71f6697

Browse files
committed
step documentaion
1 parent e001862 commit 71f6697

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

docs/components/pages/DateTimePicker.jsx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ var DateTimePicker = React.createClass({
2727
<MenuItem>time</MenuItem>
2828
<MenuItem>min</MenuItem>
2929
<MenuItem>max</MenuItem>
30+
<MenuItem>step</MenuItem>
3031
<MenuItem>format</MenuItem>
3132

3233
<MenuItem>parse</MenuItem>
@@ -124,6 +125,12 @@ var DateTimePicker = React.createClass({
124125
</p>
125126
<EditableExample codeText={require('../examples/prop')(widgetName, 'format', '"MMM dd yyyy"')}/>
126127

128+
<PropHeader type='Number' default="false">step</PropHeader>
129+
<p>
130+
The amount of minutes between each entry in the time list.
131+
</p>
132+
<EditableExample codeText={require('../examples/prop')(widgetName, { step: 90 })}/>
133+
127134
<PropHeader type='[Function(String str), Array<String>]'>parse</PropHeader>
128135
<p>
129136
Determines how the widget parses the typed date string into a Date object. You can provide an array of formats to try,

docs/components/pages/DropdownList.jsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ var DropdownList = React.createClass({
3333

3434
<MenuItem>open</MenuItem>
3535
<MenuItem>onToggle</MenuItem>
36+
<MenuItem>step</MenuItem>
3637

3738
<MenuItem>busy</MenuItem>
3839
<MenuItem>duration</MenuItem>
@@ -135,6 +136,11 @@ var DropdownList = React.createClass({
135136
when the <code>open</code> prop is {'set'} otherwise the widget open buttons won't work.
136137
</p>
137138

139+
<PropHeader type='Number' default="false">step</PropHeader>
140+
<p>
141+
`The amount of minutes between each entry in the time list.`
142+
</p>
143+
<EditableExample codeText={require('../examples/prop')(widgetName, { step: 90, open: 'time'})}/>
138144

139145
<PropHeader type='Boolean' default="false">busy</PropHeader>
140146
<p>

0 commit comments

Comments
 (0)