7.6.2.20. ListPageCreateDropdown
Component for creating a dropdown wrapped with permissions check.
Example
const exampleList: React.FC<MyProps> = () => {
const items = {
SAVE: 'Save',
DELETE: 'Delete',
}
return (
<>
<ListPageHeader title="Example Pod List Page"/>
<ListPageCreateDropdown createAccessReview={access} items={items}>Actions</ListPageCreateDropdown>
</ListPageHeader>
</>
);
};
| Parameter Name | Description |
|---|---|
|
| key:ReactNode pairs of items to display in dropdown component |
|
| callback function for click on dropdown items |
|
| (optional) object with namespace and kind used to determine access |
|
| (optional) children for the dropdown toggle |