Skip to content

Caption is rendered below table  #1185

@VTrngNghia

Description

@VTrngNghia

Describe the bug
A clear and concise description of what the bug is. In addition, please search issues before you open a report to make sure there's no any duplicated report

To Reproduce
From the story book, the attribute caption= is supposed to render a caption on top of the table
<BootstrapTable keyField="id" data={ products } caption="Plain text header" columns={ columns } />

When I tried it, it renders the caption below the table.

Screenshots
image

codesandbox
I dont know how to use sandbox, here's my code in React

    const tbl_classes = isLoading
      ? <Spinner/>
      : <CardBody>
        <BootstrapTable
          striped hover condensed bordered={false}
          keyField="id" data={classes} columns={columns}
          caption="Caption in plain text"
          noDataIndication="Table is Empty"
        />
      </CardBody>;

Metadata

Metadata

Assignees

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