2
 const columns = [{
    dataField: 'firstName',
    text: 'Visitor Name'
  }, 
  {
    dataField: 'lastName',
    text: ''
  },];

  <BootstrapTable keyField='id' data={ products} columns={ columns } />

Here firstName and lastName should be in one column.

1 Answer 1

4

If you want to show multiple data fields in a single Column, you can use formatter prop Formatter function. It gives you cell and row with which you can easily add multiple datafields in single columns. Here is the working example for you - Example

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.