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.

Carets don't display

See original GitHub issue

Hello

I setted ‘sort’ to true on my column but I can’t see any carets near of header title The sort works when I’m clicking on header.

Here is a sample of my code.

Column Declaration… const column = [ { dataField: 'name', text: 'Name', sort: true } }

Table Declaration… <BootstrapTable data={datas} columns={column} />

Thank you for your response

EDIT: I’m using bootstrap 4

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:9 (2 by maintainers)

github_iconTop GitHub Comments

45reactions
LuisUrrutiacommented, Apr 2, 2018

@Thebarda you can add the following styles to your global stylesheet:

  .caret {
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 2px;
    vertical-align: middle;
    border-top: 4px dashed;
    border-top: 4px solid \9;
    border-right: 4px solid transparent;
    border-left: 4px solid transparent;
  }
  
  .dropup .caret, .navbar-fixed-bottom .dropdown .caret {
    border-top: 0;
    border-bottom: 4px dashed;
    border-bottom: 4px solid \9;
    content: "";
  }
7reactions
ertejaspatelcommented, Jul 10, 2018

For now I just scoped the above css to the table header only.

table thead .caret { display: inline-block; width: 0; height: 0; margin-left: 2px; vertical-align: middle; border-top: 4px dashed; border-top: 4px solid \9; border-right: 4px solid transparent; border-left: 4px solid transparent; }

table thead .dropup .caret, table thead .navbar-fixed-bottom .dropdown .caret { border-top: 0; border-bottom: 4px dashed; border-bottom: 4px solid \9; content: “”; }

Read more comments on GitHub >

github_iconTop Results From Across the Web

I have this caret that wil not display as intended - Stack Overflow
I'm trying to create a caret, with this code that seemed ok, but my caret is not displaying at all. The Code: .caret...
Read more >
How to hide the insertion caret in a webpage using CSS
If you wish to hide this input cursor from input fields in your webpage, the caret-color property of CSS is used.
Read more >
caret-color - CSS: Cascading Style Sheets - MDN Web Docs
The caret-color CSS property sets the color of the insertion caret, the visible marker where the next character typed will be inserted.
Read more >
Submenu caret wrap not working with custom links
My issue is that all my customs link, even with the right pages added as a subemenu, don't display the caret wrap to...
Read more >
Carets Review - The Best Dressy Barefoot Shoes for Men
So, why not make his own barefoot friendly work shoes? Mountain designed Carets shoes to look as dressy as a traditional men's dress...
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