Skip to content

Commit

Permalink
fixed #3153
Browse files Browse the repository at this point in the history
  • Loading branch information
Mrtcndkn committed Jun 20, 2017
1 parent 5f84dbd commit ed22a13
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/app/components/megamenu/megamenu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@ import {RouterModule} from '@angular/router';
</div>
</li>
</ng-template>
<li class="ui-menuitem ui-menuitem-custom ui-widget ui-corner-all" *ngIf="orientation === 'horizontal'">
<ng-content></ng-content>
</li>
</ul>
</div>
`,
Expand Down
13 changes: 13 additions & 0 deletions src/app/showcase/components/megamenu/megamenudemo.html
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,19 @@ <h3>Getting Started</h3>
</code>
</pre>

<h3>Custom Content</h3>
<p>Custom content can be placed between p-megaMenu tags. Megamenu should be horizontal for custom content.</p>

<pre>
<code class="language-markup" pCode ngNonBindable>
&lt;p-megaMenu [model]="items"&gt;
&lt;input type="text" pInputText placeholder="Search"&gt;
&lt;button pButton label="Logout" icon="fa-sign-out"&gt;&lt;/button&gt;
&lt;/p-megaMenu&gt;
</code>
</pre>


<h3>Properties</h3>
<div class="doc-tablewrapper">
<table class="doc-table">
Expand Down

0 comments on commit ed22a13

Please sign in to comment.