Skip to content

Commit

Permalink
Update documentation with new behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
cee-chen committed Jan 27, 2022
1 parent e0eac1a commit 12966da
Showing 1 changed file with 24 additions and 4 deletions.
28 changes: 24 additions & 4 deletions src-docs/src/views/datagrid/datagrid_ref_example.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,30 @@ export const DataGridRefExample = {
<EuiSpacer size="m" />
</li>
<li>
<p>
<EuiCode>openCellPopover({'{ rowIndex, colIndex }'})</EuiCode> -
opens the specified cell&apos;s popover contents.
</p>
<EuiCode>openCellPopover({'{ rowIndex, colIndex }'})</EuiCode> -
opens the specified cell&apos;s popover contents.
<EuiSpacer size="s" />
<EuiCallOut iconType="mapMarker" title="Handling cell location">
When using <EuiCode>setFocusedCell</EuiCode> or{' '}
<EuiCode>openCellPopover</EuiCode>, keep in mind:
<ul>
<li>
colIndex is affected by the user reordering or hiding
columns.
</li>
<li>
If the passed cell indices are outside the data grid&apos;s
total row count or visible column count, an error will be
thrown.
</li>
<li>
If the data grid is paginated or sorted, the grid will
handle automatically finding specified row index&apos;s
correct location for you.
</li>
</ul>
</EuiCallOut>
<EuiSpacer size="m" />
</li>
<li>
<p>
Expand Down

0 comments on commit 12966da

Please sign in to comment.