Patternfly-react: [PF4] DropdownItems should be optional in dropdown

Created on 15 Mar 2019  路  1Comment  路  Source: patternfly/patternfly-react

If we want to create a dropdown panel (The Basic Dropdown is provided for flexibility in allowing various content within a dropdown) we need to add the dropdownItems like []
This create a div under the panel.

import { FunctionComponent, HTMLProps, ReactNode } from 'react';
import { OneOf } from '../../helpers/typeUtils';
import { DropdownPosition, DropdownDirection } from './dropdownConstants';

export interface DropdownProps extends HTMLProps<HTMLDivElement> {
 children?: ReactNode;
 dropdownItems: ReactNode[];
 isPlain?: boolean;
 isOpen?: boolean;
 isAction?: boolean;
 onSelect(event: React.SyntheticEvent<HTMLDivElement>): void;
 position?: OneOf<typeof DropdownPosition, keyof typeof DropdownPosition>;
 direction?: OneOf<typeof DropdownDirection, keyof typeof DropdownDirection>;
 toggle?: ReactNode;
}

declare const Dropdown: FunctionComponent<DropdownProps>;

export default Dropdown;

PF4 bug p1

Most helpful comment

Closing because this issue was complete

>All comments

Closing because this issue was complete

Was this page helpful?
0 / 5 - 0 ratings