Created
December 12, 2019 16:55
-
-
Save Kalpesh300/8b4b2492ff8fd075e4ef474c70df542f to your computer and use it in GitHub Desktop.
Custom Dropdown Component
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
<div class="btn-group" dropdown> | |
<button id="button-basic" dropdownToggle type="button" | |
class="btn btn-primary dropdown-toggle" | |
aria-controls="dropdown-basic"> | |
{{ selectedOption }} <span class="caret"></span> | |
</button> | |
<ul id="dropdown-basic" *dropdownMenu class="dropdown-menu" | |
role="menu" aria-labelledby="button-basic"> | |
<li role="menuitem" *ngFor="let option of options"> | |
<span class="dropdown-item"> | |
{{ option }} | |
</span> | |
</li> | |
</ul> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment