React-bootstrap-table2: Style is not working

Created on 11 Nov 2018  Â·  4Comments  Â·  Source: react-bootstrap-table/react-bootstrap-table2

Hi,

My table doesn't get any style.

import BootstrapTable from 'react-bootstrap-table-next';
import ToolkitProvider, { Search } from 'react-bootstrap-table2-toolkit';
import paginationFactory from 'react-bootstrap-table2-paginator';

const { SearchBar } = Search;

keyField="txNref"
data={ products }
columns={ columns }
search
bootstrap4
striped
hover
condensed
bordered
>
{
props => (


Filtro





    pagination={ paginationFactory() }
      { ...props.baseProps }
    />
  </div>
)

}

Most helpful comment

I solve this issue importing bootstrap on index.html file

link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">

All 4 comments

I'm experiencing the same issue.

I solve this issue importing bootstrap on index.html file

link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">

Thank you! That worked.

On Mon, Nov 12, 2018 at 4:49 PM QuattroEngenharia notifications@github.com
wrote:

I solve this issue importing bootstrap on index.html file

link rel="stylesheet" href="
https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css"
integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm"
crossorigin="anonymous">

—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/react-bootstrap-table/react-bootstrap-table2/issues/663#issuecomment-438040392,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AA7LL6K36ByUqAukumem8HljriAwD7NGks5uuezugaJpZM4YYua2
.

yeah, react-bootstrap-table didn't include the css of bootstrap, you should add it by yourself.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

nskiro picture nskiro  Â·  4Comments

eylonronen picture eylonronen  Â·  3Comments

cnav007 picture cnav007  Â·  4Comments

ethannkschneider picture ethannkschneider  Â·  3Comments

Randore picture Randore  Â·  3Comments