Skip to content

Commit

Permalink
[added] right-to-left support
Browse files Browse the repository at this point in the history
  • Loading branch information
jquense committed Nov 29, 2015
1 parent 8bb6589 commit a41c9f9
Show file tree
Hide file tree
Showing 12 changed files with 107 additions and 31,729 deletions.
4 changes: 4 additions & 0 deletions examples/demos/cultures.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,16 @@ let Cultures = React.createClass({

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

return (
<div>
<h3 style={{ marginBottom: 20 }}>
<label>Select a Culture</label>
{' '}
<select
className='form-control'
style={{ width: 200, display: 'inline-block'}}
defaultValue={'fr'}
onChange={e => this.setState({ culture: e.target.value })}
>
Expand All @@ -33,6 +36,7 @@ let Cultures = React.createClass({
</select>
</h3>
<BigCalendar
rtl={rtl}
events={events}
culture={this.state.culture}
defaultDate={new Date(2015, 3, 1)}
Expand Down
2 changes: 2 additions & 0 deletions examples/demos/selectable.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ let Selectable = React.createClass({
selectable
events={events}
defaultView='week'
min={new Date(2015, 3, 1, 4, 0, 0)}
max={new Date(2015, 3, 1, 16, 30, 0)}
defaultDate={new Date(2015, 3, 1)}
onSelectEvent={event => alert(event.title)}
onSelectSlot={(slotInfo) => alert(
Expand Down
Loading

0 comments on commit a41c9f9

Please sign in to comment.