Topic: Dropdown menu with vertical scrollbar
<div class="btn-group mr-0 p-0" dropdown> <button dropdownToggle class="btn btn-sm btn-primary dropdown-toggle waves-light" type="button" mdbRippleRadius> Configurations </button> <div class="dropdown-menu dropdown-primary" > <a class="dropdown-item" *ngFor="let item of viewConfigs; index as i;" (click)="selected(item)">{{item.name}}</a> </div> </div>
Dawid Adach pro answered 7 years ago
<div class="dropdown-menu dropdown-primary force-scroll">
.force-scroll { overflow-y: scroll; height: 200px; }
krishna kumari answered 5 years ago
.dropdown-menu { max-height: 180px; overflow-y: auto; min-width: 100% !important; background-attachment: local, local, scroll, scroll; }
.dropdown-item { white-space: normal; }
Closed
This topic is closed.
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Closed
- User: Free
- Premium support: No
- Technology: MDB Angular
- MDB Version: -
- Device: -
- Browser: -
- OS: -
- Provided sample code: No
- Provided link: No