0

I have a table with two columns that are both primary keys. How do I define the KeyField with two primary key?

prikeyarr contains [book_id, author_id].

<BootstrapTable keyField={props.prikeyarr} data={props.records} columns={columns} striped />

The code above gives me error warnings...

Therefore, in this case, I can only put one primary key as the keyField.

1 Answer 1

1

keyField(required) - [String]

BootstrapTable

I would make it in combination string, for example

primaryKeyString=`${book_id}_${author_id}`
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.