diff --git a/.eslintrc.js b/.eslintrc.js index ef200d9401..e87dc2a438 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -357,7 +357,7 @@ const rules = { 'react/jsx-no-undef': 0, 'react/jsx-no-useless-fragment': 0, 'react/jsx-one-expression-per-line': 0, - 'react/jsx-curly-brace-presence': 0, + 'react/jsx-curly-brace-presence': 1, 'react/jsx-fragments': 1, 'react/jsx-pascal-case': 1, 'react/jsx-props-no-multi-spaces': 1, diff --git a/examples/components/ExampleList.js b/examples/components/ExampleList.js index 839abb9ba8..0d00165390 100644 --- a/examples/components/ExampleList.js +++ b/examples/components/ExampleList.js @@ -29,7 +29,6 @@ export default class ExampleList extends React.Component {
Row selection is enabled via the rowSelection
prop (object). The following keys control behaviour:
- This allows rows to be selected programatically. The options are:
- indexes - to select rows by index.
- keys - to select rows by specified key and values.
- isSelectedKey - to select rows by specified key (based on value being truthy or falsy).
-
- When rows are selected or de-selected, onRowsSelected
or onRowsDeselected
functions will be called (set as props) with an array of .
- This allows for single or multiple selection to be implemented as desired, by either appending to or replacing the list of selected items.
-
Allows the row selection checkbox to be hidden (shown by default). Useful for selecting rows programatically and controlling selection via theonRowClick
event.
- Allows a continuous range of rows to be selected by holding the shift key when clicking the row selection checkbox. -
-Note: These props supercede the existing enableRowSelect
and onRowUpdated
props which will be removed in a later release.