Skip to content

Commit

Permalink
[PR feedback] Copy
Browse files Browse the repository at this point in the history
  • Loading branch information
cee-chen committed Oct 27, 2023
1 parent 866731c commit ec7863c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@ export const selectionSection = {
</p>
<p>
For uncontrolled usage, where selection changes are determined entirely
by the user, you can set items to be selected initially by passing an
array of items to an array of items to{' '}
to be selected initially by passing an array of items to{' '}
<EuiCode>selection.initialSelected</EuiCode>. You can also use{' '}
<EuiCode>selected.onSelectionChange</EuiCode> to track or respond to the
items that users select.
Expand All @@ -32,7 +31,7 @@ export const selectionSection = {
To completely control table selection, use{' '}
<EuiCode>selection.selected</EuiCode> instead (which requires passing{' '}
<EuiCode>selected.onSelectionChange</EuiCode>). This can be useful if
you want to handle selection in table based on user interaction with
you want to handle table selections based on user interaction with
another part of the UI.
</p>
</>
Expand Down
6 changes: 3 additions & 3 deletions src-docs/src/views/tables/selection/selection_section.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,16 +66,16 @@ export const section = {
The following example shows how to configure selection via the{' '}
<EuiCode>selection</EuiCode> property. For uncontrolled usage, where
selection changes are determined entirely by the user, you can set items
to be selected initially by passing an array of items to an array of
items to <EuiCode>selection.initialSelected</EuiCode>. You can also use{' '}
to be selected initially by passing an array of items to{' '}
<EuiCode>selection.initialSelected</EuiCode>. You can also use{' '}
<EuiCode>selected.onSelectionChange</EuiCode> to track or respond to the
items that users select.
</p>
<p>
To completely control table selection, use{' '}
<EuiCode>selection.selected</EuiCode> instead (which requires passing{' '}
<EuiCode>selected.onSelectionChange</EuiCode>). This can be useful if
you want to handle selection in table based on user interaction with
you want to handle table selections based on user interaction with
another part of the UI.
</p>
</>
Expand Down

0 comments on commit ec7863c

Please sign in to comment.