Skip to content

Commit a41c9f9

Browse files
committed
[added] right-to-left support
1 parent 8bb6589 commit a41c9f9

12 files changed

+107
-31729
lines changed

examples/demos/cultures.js

+4
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,16 @@ let Cultures = React.createClass({
1515

1616
render(){
1717
let cultures = ['en', 'en-GB', 'es', 'fr', 'ar-AE']
18+
let rtl = this.state.culture === 'ar-AE';
1819

1920
return (
2021
<div>
2122
<h3 style={{ marginBottom: 20 }}>
2223
<label>Select a Culture</label>
2324
{' '}
2425
<select
26+
className='form-control'
27+
style={{ width: 200, display: 'inline-block'}}
2528
defaultValue={'fr'}
2629
onChange={e => this.setState({ culture: e.target.value })}
2730
>
@@ -33,6 +36,7 @@ let Cultures = React.createClass({
3336
</select>
3437
</h3>
3538
<BigCalendar
39+
rtl={rtl}
3640
events={events}
3741
culture={this.state.culture}
3842
defaultDate={new Date(2015, 3, 1)}

examples/demos/selectable.js

+2
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ let Selectable = React.createClass({
1414
selectable
1515
events={events}
1616
defaultView='week'
17+
min={new Date(2015, 3, 1, 4, 0, 0)}
18+
max={new Date(2015, 3, 1, 16, 30, 0)}
1719
defaultDate={new Date(2015, 3, 1)}
1820
onSelectEvent={event => alert(event.title)}
1921
onSelectSlot={(slotInfo) => alert(

0 commit comments

Comments
 (0)