From da6a5f75e989afb84359c7630553f7147903ada5 Mon Sep 17 00:00:00 2001 From: Dekel Date: Tue, 21 Mar 2017 18:32:53 +0200 Subject: [PATCH 1/3] added rtl support --- examples/src/components/Multiselect.js | 12 +++++++++++- examples/src/components/States.js | 7 ++++++- less/control.less | 9 +++++++++ less/multi.less | 16 +++++++++++++++- src/Select.js | 2 ++ 5 files changed, 43 insertions(+), 3 deletions(-) diff --git a/examples/src/components/Multiselect.js b/examples/src/components/Multiselect.js index 3142e75ef9..7122b1aba5 100644 --- a/examples/src/components/Multiselect.js +++ b/examples/src/components/Multiselect.js @@ -25,6 +25,7 @@ var MultiSelectField = React.createClass({ crazy: false, options: FLAVOURS, value: [], + rtl: false, }; }, handleSelectChange (value) { @@ -41,11 +42,16 @@ var MultiSelectField = React.createClass({ options: crazy ? WHY_WOULD_YOU : FLAVOURS, }); }, + toggleRtl (e) { + let rtl = e.target.checked; + this.setState({ rtl }); + }, + render () { return (

{this.props.label}

-
+
); diff --git a/examples/src/components/States.js b/examples/src/components/States.js index 8103c2eb90..01c8e54734 100644 --- a/examples/src/components/States.js +++ b/examples/src/components/States.js @@ -22,6 +22,7 @@ var StatesField = React.createClass({ searchable: this.props.searchable, selectValue: 'new-south-wales', clearable: true, + rtl: false, }; }, switchCountry (e) { @@ -51,7 +52,7 @@ var StatesField = React.createClass({ return (

{this.props.label}

-
@@ -67,6 +68,10 @@ var StatesField = React.createClass({ Clearable +