question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support bootstrap 4

See original GitHub issue

Hi @AllenFang:

I’m trying to support bootstrap 4 and I’ll take a look on how it was implemented in react-bootstrap-table. It would be take refer to but won’t be the same. If there’s any concern or advices, please let me know. Thanks a lot 😃

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:16 (7 by maintainers)

github_iconTop GitHub Comments

10reactions
ssorallencommented, Jul 17, 2018

I’ve been using react-bootstrap-table2 with Bootstrap 4.1.1, and so far the only thing I’ve needed to add is the caret. This is the CSS I added to my project so far:

/* Caret from Bootstrap 3 */
.caret {
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 2px;
  vertical-align: middle;
  border-top: 4px dashed;
  border-top: 4px solid;
  border-right: 4px solid transparent;
  border-left: 4px solid transparent;
}

.dropup .caret {
  border-bottom: 4px dashed;
  border-top: 0;
  content: '';
}

/* Prevent excessive margin from react-table from increasing the height of the
 * `<thead>`.
 */
.react-bootstrap-table th > .react-bootstrap-table-sort-order > .caret,
.react-bootstrap-table th .order > .dropdown > .caret,
.react-bootstrap-table th .order > .dropup > .caret {
  margin-bottom: 0;
  margin-top: 0;
}

Thanks for all the work on this project. The table works great!

3reactions
ssorallencommented, May 7, 2018

Also the table-condensed class changed to table-sm. The condensed prop for ReactBootstrapTable2 adds the incorrect class name right now and has no effect. You can get around it by using classes="table-sm" right now.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Browsers and devices - Bootstrap
Bootstrap supports the latest, stable releases of all major browsers and platforms. On Windows, we support Internet Explorer 10-11 / Microsoft Edge.
Read more >
Introduction - Bootstrap
Get started with Bootstrap, the world's most popular framework for building responsive, mobile-first sites, with jsDelivr and a template starter page.
Read more >
Introducing our Long Term Support plan - Bootstrap Blog
Bootstrap 4 will move to Long Term Support after we release v4.4 and will no longer receive new features from then on.
Read more >
Bootstrap · The most popular HTML, CSS, and JS library in the ...
Powerful, extensible, and feature-packed frontend toolkit. Build and customize with Sass, utilize prebuilt grid system and components, and bring projects to ...
Read more >
Introduction · Bootstrap v4.6
Many of our components require the use of JavaScript to function. Specifically, they require jQuery, Popper, and our own JavaScript plugins. We use...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found