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

Add same column twice (material-ui data grid) #140

Open
jozef-slezak opened this issue Jul 2, 2021 · 0 comments
Open

Add same column twice (material-ui data grid) #140

jozef-slezak opened this issue Jul 2, 2021 · 0 comments
Labels
help wanted Extra attention is needed

Comments

@jozef-slezak
Copy link
Contributor

jozef-slezak commented Jul 2, 2021

Goal: generate unique columns id/field for the same column

Background: MaterialUI Data Grid -field is the only required property since it's the column identifier.

Requirements

  • check if the column id (field) is allready present (for example { field: "name")
    valueGetter
  • use { field: "name", valueGetter if the entity does not contain unique columne id
  • use suffix: 2, 3, 4 (for example { field: "name"...) for column id (field) if the field is allready present in columns
  • ability to define columnId (use case: user could define "fullName" concantenated from first name and last name)

API

  • extend existing API addColumn parameters options with new optional columnId
@jozef-slezak jozef-slezak added the help wanted Extra attention is needed label Jul 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant