Skip to content

Commit

Permalink
OCPBUGS-19394: document kebab menu cell props
Browse files Browse the repository at this point in the history
  • Loading branch information
rhamilto committed Sep 20, 2023
1 parent 078dca0 commit 942578e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions frontend/packages/console-dynamic-plugin-sdk/docs/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -563,6 +563,10 @@ const PodRow: React.FC<RowProps<K8sResourceCommon>> = ({ obj, activeColumnIDs })
<TableData id={columns[1].id} activeColumnIDs={activeColumnIDs}>
<ResourceLink kind="Namespace" name={obj.metadata.namespace} />
</TableData>
// Important: the kebab menu cell should include the id and className prop values below
<TableData id='' className='pf-c-table__action' activeColumnIDs={activeColumnIDs}>
<MockKebabMenu obj={obj} />
</TableData>
</>
);
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,10 @@ export const VirtualizedTable: VirtualizedTableFC = require('@console/internal/c
* <TableData id={columns[1].id} activeColumnIDs={activeColumnIDs}>
* <ResourceLink kind="Namespace" name={obj.metadata.namespace} />
* </TableData>
* // Important: the kebab menu cell should include the id and className prop values below
* <TableData id='' className='pf-c-table__action' activeColumnIDs={activeColumnIDs}>
* <MockKebabMenu obj={obj} />
* </TableData>
* </>
* );
* };
Expand Down

0 comments on commit 942578e

Please sign in to comment.