Skip to content

Commit

Permalink
Merge branch 'sprint10-staging' into sprint10-159-conditional-view-al…
Browse files Browse the repository at this point in the history
…l-button
  • Loading branch information
rmathew1011 committed Sep 2, 2020
2 parents 1bf8e85 + 11ed932 commit 2a37393
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/app/tl-mega-menu/tl-mega-menu.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
</div>
<div class="mega-menu-view-all">
<tl-button-element *ngIf="viewAllHref" [href]="viewAllHref" [btnClass]="'primary'">
<wvr-text-element value="View All {{menuTitle}}"></wvr-text-element>
<wvr-text-element [value]="viewAllButtonText"></wvr-text-element>
</tl-button-element>
</div>
</wvr-dropdown-menu>
Expand Down
3 changes: 3 additions & 0 deletions src/app/tl-mega-menu/tl-mega-menu.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ export class TlMegaMenuComponent extends TamuAbstractBaseComponent {

@Input() viewAllHref = 'https://library.tamu.edu';

/** This variable allows customizing the text value of View All button in the mega menu. */
@Input() viewAllButtonText = `View All ${this.menuTitle}`;

// tslint:disable-next-line:unnecessary-constructor
constructor(injector: Injector) {
super(injector);
Expand Down
4 changes: 2 additions & 2 deletions src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -223,8 +223,8 @@

<br /><hr /><br />
<div class="container" style="height: 700px">
<tl-mega-menu menu-title="Services" view-all-href="/view-all">

<tl-mega-menu menu-title="Services" view-all-href="/view-all" view-all-button-text= "Customized View All Button">
<tl-mega-menu-section section-title="Section One">
<tl-nav-li>
<a href="/services/option1">
Expand Down

0 comments on commit 2a37393

Please sign in to comment.