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.

DropUp instead of dropdown in Pagination

See original GitHub issue

When the pagination toolbar is at the bottom of the screen, the ‘sizePerPageList’ dropdown is hidden from the viewport.

You can override the styling for the dropdown yourself:

.react-bs-table-pagination .dropdown .dropdown-menu {
    top: auto;
    bottom: 100%;
    margin-bottom: 2px;
}

Would it be possible to make the css class of the dropdown configurable, either dropdown or dropup?

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:17 (6 by maintainers)

github_iconTop GitHub Comments

3reactions
stephanebarbeycommented, May 9, 2017

I think you have to pass the other props as parameters to <SizePerPageDropDown … />, i.e.

     return (
          <SizePerPageDropDown
              variation='dropup'
              {...props}
          />
      );
2reactions
AllenFangcommented, Jun 2, 2017

@alekseyl1992, fixed on newest version.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How To Create a Dropup Menu - W3Schools
Dropup. A dropup menu is a toggleable menu that allows the user to choose one ... Instead of using a border, we have...
Read more >
Drop up instead Drop down css - Stack Overflow
I have coded for hover you can do it for click events also by using javascript or jquery. .dropbtn { background-color: #3498DB; color:...
Read more >
Dropdowns - Bootstrap
Trigger dropdown menus above elements by adding .dropup to the parent element. ... Now you can optionally use <button> elements in your dropdowns...
Read more >
Bootstrap Dropdowns - examples & tutorial
Responsive dropdown/caret built with Bootstrap 5. ... Trigger dropdown menus above elements by adding .dropup to the parent element. Dropup.
Read more >
Dropdown | Components - BootstrapVue
Turn your dropdown menu into a drop-up menu by setting the dropup prop. ... Using <b-dropdown-group> instead of <b-dropdown-header> is the recommended ...
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