-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(dropdown): now you can bind to dropup property
- Loading branch information
Showing
3 changed files
with
26 additions
and
19 deletions.
There are no files selected for viewing
27 changes: 16 additions & 11 deletions
27
demo/src/app/components/+dropdown/demos/dropup/dropup.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,20 @@ | ||
<div class="btn-group dropup" dropdown dropup> | ||
<div class="btn-group" dropdown [dropup]="isDropup"> | ||
<button dropdownToggle type="button" class="btn btn-primary dropdown-toggle"> | ||
Dropup <span class="caret"></span> | ||
</button> | ||
<ul *dropdownMenu class="dropdown-menu" role="menu"> | ||
<li role="menuitem"><a class="dropdown-item" href="#">Action</a></li> | ||
<li role="menuitem"><a class="dropdown-item" href="#">Another action</a> | ||
</li> | ||
<li role="menuitem"><a class="dropdown-item" href="#">Something else | ||
here</a></li> | ||
<li class="divider dropdown-divider"></li> | ||
<li role="menuitem"><a class="dropdown-item" href="#">Separated link</a> | ||
</li> | ||
</ul> | ||
<ul *dropdownMenu class="dropdown-menu" role="menu"> | ||
<li role="menuitem"><a class="dropdown-item" href="#">Action</a></li> | ||
<li role="menuitem"><a class="dropdown-item" href="#">Another action</a> | ||
</li> | ||
<li role="menuitem"><a class="dropdown-item" href="#">Something else | ||
here</a></li> | ||
<li class="divider dropdown-divider"></li> | ||
<li role="menuitem"><a class="dropdown-item" href="#">Separated link</a> | ||
</li> | ||
</ul> | ||
</div> | ||
<div class="checkbox"><label> | ||
<input type="checkbox" value="true" [(ngModel)]="isDropup" | ||
style="display: inline-block;" | ||
>{{ isDropup ? 'Is dropup' : 'Is dropdown' }} | ||
</label></div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters