Skip to content

Commit

Permalink
Merge pull request #204 from TAMULib/sprint10-154-mega-menu-open-down…
Browse files Browse the repository at this point in the history
…ward

Added attr display drop down menu
  • Loading branch information
jeremythuff authored Sep 15, 2020
2 parents d02d126 + 95d0326 commit 4e7e5b9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<div #WvrDropdown class="wvr-components wvr-dropdown d-inline-flex align-items-center">
<div ngbDropdown display="dynamic" class="d-inline-block">
<div ngbDropdown display="{{dropdownMenuDisplay}}" class="d-inline-block">
<wvr-button-element (click)="clickOpen($event)"
[background]="btnBackground"
[backgroundActive]="btnBackgroundActive"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -352,6 +352,8 @@ export class WvrDropdownComponent extends WvrBaseComponent {
*/
private closing = false;

@Input() dropdownMenuDisplay = 'dynamic';

constructor(injector: Injector, config: NgbDropdownConfig) {
super(injector);
config.autoClose = false;
Expand Down
3 changes: 2 additions & 1 deletion src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
btn-text-decoration="none"
btn-text-decoration-active="none"
btn-text-decoration-hover="none"
placement="top-left"
toggle-on="click"
menu-width="400px"
menu-padding="0"
Expand Down Expand Up @@ -171,7 +172,7 @@

<div class="container index-container">
<wvr-text value="Dropdown with Buttons" text-decoration="underline"></wvr-text><br />
<wvr-dropdown btn-type="primary" hidden-in-mobile="true">
<wvr-dropdown btn-type="primary" hidden-in-mobile="true" placement="right" dropdown-menu-display="static">
<wvr-dropdown-btn>
<wvr-text value="Primary Dropdown Hidden in Mobile"></wvr-text>
</wvr-dropdown-btn>
Expand Down

0 comments on commit 4e7e5b9

Please sign in to comment.