Skip to content

KeyField auto increment #166

Closed
Closed
@adrienduchemin

Description

@adrienduchemin

Hi @AllenFang, Thank you first for your work, I am using react-bootstrap-table a lot in my current project and can't wait to upgrade to react-bootstrap-table2!
I was thinking about the possibility to have the KeyField attribute not required. In that case, the key will be auto incremented for each rows (like an index). I say that because there are cases where you don't use the table in a CRUD environment and don't have ids.
Another scenario (if you still want KeyField required) would be to have the possibility to give KeyField a format like KeyField="column1-column2" so a combination of columns makes the key unique.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions