FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Table IAction require onClick to be supplied · Issue #3557 · patternfly/patternfly-react · GitHub

Table IAction require onClick to be supplied #3557

Description

Describe the issue. What is the expected and unexpected behavior?
Looking at IAction interface for <Table> actions prop it requires onClick function prop to be provided.

export interface IAction extends Omit<DropdownItemProps, 'title' | 'onClick'> {
isSeparator?: boolean;
itemKey?: string;
title?: string | React.ReactNode;
onClick: (event: React.MouseEvent, rowIndex: number, rowData: IRowData, extraData: IExtraData) => void;
}

This prevents the ability to have link actions, such as the example provided in
https://www.patternfly.org/v4/documentation/react/components/table#simple-actions

Please provide the steps to reproduce. Feel free to link CodeSandbox or another tool.

Is this a bug or enhancement? If this issue is a bug, is this issue blocking you or is there a work-around?
Bug

What is your product and what release version are you targeting?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


    Back | FazBrowse Home | New Git URL