Bootstrap 4 pagination page size dropdown not compatible?
See original GitHub issueHi, I recently upgraded my app to use bootstrap 4 and noticed the drop down for the page size does not work. I looked into the issue and noticed they have changed how the dropdown works in bootstrap 4 compared to 3.
So the main differences I can see is that in bootstrap 4 :
- The list items are just tags and not
- items
- When opened the containing div is given the class open in bootstrap 3 and show in bootstrap 4
Is there any chance of a fix for bootstrap 4?
Thanks again.
Simon
Oh here is an example of a dropdown in bootstrap 4
<button class="btn btn-secondary dropdown-toggle" type="button" id="dropdownMenuButton" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
Dropdown button
</button>
<div class="dropdown-menu" aria-labelledby="dropdownMenuButton">
<a class="dropdown-item" href="#">Action</a>
<a class="dropdown-item" href="#">Another action</a>
<a class="dropdown-item" href="#">Something else here</a>
</div>
</div>
and here is how the dropdown works in bootstrap 3
<div class="btn-group">
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
Action <span class="caret"></span>
</button>
<ul class="dropdown-menu">
<li><a href="#">Action</a></li>
<li><a href="#">Another action</a></li>
<li><a href="#">Something else here</a></li>
<li role="separator" class="divider"></li>
<li><a href="#">Separated link</a></li>
</ul>
</div>
Issue Analytics
- State:
- Created 7 years ago
- Comments:7 (6 by maintainers)
Top Results From Across the Web
Pagination - Bootstrap
Documentation and examples for showing pagination to indicate a series of related content exists across multiple pages.
Read more >Remember page size in bootstrap table - Stack Overflow
Show activity on this post. I use standard pagination in Bootstrap table. I want to remember in cookie page size value selected by...
Read more >Dropdown | Components - BootstrapVue
Dropdowns are toggleable, contextual overlays for displaying lists of links and actions in a dropdown menu format.
Read more >Pagination Props · react-bootstrap-table2 - GitHub Pages
Default is 5, which means the size of pagination. pagination.sizePerPageList - [Array]. Default size per page have 10, 25, 30, 50. You can...
Read more >10 Most Common Bootstrap Mistakes That Developers Make
This may be because it is not clearly advertised on the Bootstrap site, ... Glyphicons, Dropdowns, Buttons and Input Groups, Navigation, Pagination, ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Released on
v4.0.0-beta.6
, The production release will be in this or next week, thanks your contribution.@AllenFang This should work for both bootstrap 3 and 4.