Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[RFR] Introduce Datagrid rowClick #2341

Merged
merged 1 commit into from
Sep 19, 2018
Merged

[RFR] Introduce Datagrid rowClick #2341

merged 1 commit into from
Sep 19, 2018

Conversation

fzaninotto
Copy link
Member

Some users require datagrids with many columns. The Edit or Show button takes a significant share of the horizontal space. As an alternative to adding an <EditButton>, developers can now enable the rowClick option on the <Datagrid> component:

const UserList = props => (
    <List {...props}>
        <Datagrid rowClick="show">
            <TextField source="id" />
            <TextField source="name" />
            <TextField source="role" />
        </Datagrid>
    </List>
);

kapture 2018-09-19 at 22 36 27

@fzaninotto fzaninotto added this to the 2.4.0 milestone Sep 19, 2018
@djhi djhi merged commit 59c4c73 into next Sep 19, 2018
@djhi djhi deleted the datagrid-row-click branch September 19, 2018 20:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants