Skip to content

Commit e2e8e39

Browse files
author
edwardxiao
committed
- Enable show or hide <Select /> arrow
1 parent da438fa commit e2e8e39

14 files changed

+33
-25
lines changed

docs/v4-doc.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -325,6 +325,7 @@ import 'react-inputs-validation/lib/react-inputs-validation.min.css';
325325
|value | Opt | Str | | "" |
326326
|disabled | Opt | Bool | | false |
327327
|showSearch | Opt | Bool |Show a search box in order to find option quickly. | false |
328+
|showArrow | Opt | Bool |Show the arrow. | true |
328329
|keyword | Opt | Str |Show a keyword for search box. | '' |
329330
|**validate** |**Opt**|**Bool**| |**false** |
330331
|**validationCallback** |**Opt**|**Func**| |**none** |
@@ -366,6 +367,7 @@ import 'react-inputs-validation/lib/react-inputs-validation.min.css';
366367
value={movie} //Optional.[String].Default: "".
367368
disabled={false} //Optional.[Bool].Default: false.
368369
showSearch={false} // Optional.[Bool].Default: false. Show a search box in order to find option quickly.
370+
showArrow={true} // Optional.[Bool].Default: true.
369371
keyword={''} // Optional.[String].Default: ''. Show a keyword for search box.
370372
//Optional.[Bool].Default: false. If you have a submit button and trying to validate all the inputs of your form at once, toggle it to true, then it will validate the field and pass the result via the "validationCallback" you provide.
371373
validationCallback={res =>

example/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1099,6 +1099,7 @@ class Index extends Component {
10991099
value={country} // Optional.[String].Default: "".
11001100
disabled={false} // Optional.[Bool].Default: false.
11011101
showSearch={true} // Optional.[Bool].Default: false. Show a search box in order to find option quickly.
1102+
showArrow={true} // Optional.[Bool].Default: true.
11021103
// keyword={''} // Optional.[String].Default: ''. Show a keyword for search box.
11031104
validate={validate} // Optional.[Bool].Default: false. If you have a submit button and trying to validate all the inputs of your form at onece, toggle it to true, then it will validate the field and pass the result via the "validationCallback" you provide.
11041105
validationCallback={res => this.setState({ hasMovieError: res, validate: false })} // Optional.[Func].Default: none. Return the validation result.

lib/components/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/react-inputs-validation.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/react-inputs-validation.css.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/react-inputs-validation.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/react-inputs-validation.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/react-inputs-validation.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/react-inputs-validation.min.css.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/react-inputs-validation.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)