aboutsummaryrefslogtreecommitdiffhomepage
path: root/examples/pick-time.js
diff options
context:
space:
mode:
Diffstat (limited to 'examples/pick-time.js')
-rw-r--r--examples/pick-time.js18
1 files changed, 1 insertions, 17 deletions
diff --git a/examples/pick-time.js b/examples/pick-time.js
index 074e72c..f66e416 100644
--- a/examples/pick-time.js
+++ b/examples/pick-time.js
@@ -24,27 +24,11 @@ function onChange(value) {
24 console.log(value && formatter.format(value)); 24 console.log(value && formatter.format(value));
25} 25}
26 26
27const options = {
28 disabledHours() {
29 return [0, 2, 21];
30 },
31 disabledMinutes(h) {
32 return h === 22 ? [0, 3, 31] : [];
33 },
34 disabledSeconds(h, m) {
35 return [];
36 },
37};
38
39ReactDom.render( 27ReactDom.render(
40 <TimePicker formatter={formatter} locale={TimePickerLocale} 28 <TimePicker formatter={formatter} locale={TimePickerLocale}
41 showSecond={showSecond} 29 showSecond={showSecond}
42 defaultValue={now} 30 defaultValue={now}
43 className="xxx" 31 className="xxx"
44 onChange={onChange} 32 onChange={onChange} />,
45 disabledHours={[0, 2, 21]}
46 disabledMinutes={[0, 2, 21]}
47 disabledSeconds={[]}
48 hideDisabledOptions={true} />,
49 document.getElementById('__react-content') 33 document.getElementById('__react-content')
50); 34);