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
<ng-template #content let-c="close" let-d="dismiss"> | |
<div class="modal-header"> | |
<h4 class="modal-title">Modal title</h4> | |
<button type="button" class="close" aria-label="Close" (click)="d('Cross click')"> | |
<span aria-hidden="true">×</span> | |
</button> | |
</div> | |
<div class="modal-body"> | |
<p>One fine body…</p> | |
</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
<div class="row"> | |
<div class="col"> | |
<div ngbDropdown class="d-inline-block"> | |
<button class="btn btn-outline-primary" id="dropdownBasic1" ngbDropdownToggle>Toggle dropdown</button> | |
<div class="dropdown-menu" aria-labelledby="dropdownBasic1"> | |
<button class="dropdown-item">Action - 1</button> | |
<button class="dropdown-item">Another Action</button> | |
<button class="dropdown-item">Something else is here</button> | |
</div> | |
</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
<ngb-datepicker #dp [(ngModel)]="today" (navigate)="date = $event.next"></ngb-datepicker> | |
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
<p> | |
<button type="button" class="btn btn-outline-primary" (click)="isCollapsed = !isCollapsed" | |
[attr.aria-expanded]="!isCollapsed" aria-controls="collapseExample"> | |
Toggle | |
</button> | |
</p> | |
<div id="collapseExample" [ngbCollapse]="isCollapsed"> | |
<div class="card"> | |
<div class="card-block"> | |
You can collapse this card by clicking Toggle |
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
<ngb-carousel> | |
<ng-template ngbSlide> | |
<img src="/assets/images/brenda.jpg" alt="Random first slide"> | |
<div class="carousel-caption"> | |
<h3>First slide label</h3> | |
<p>Nulla vitae elit libero, a pharetra augue mollis interdum.</p> | |
</div> | |
</ng-template> | |
<ng-template ngbSlide> | |
<img src="/assets/images/brooke.jpg" alt="Random second slide"> |
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
<p *ngFor="let alert of alerts"> | |
<ngb-alert [type]="alert.type" (close)="closeAlert(alert)">{{ alert.message }}</ngb-alert> | |
</p> | |
<p> | |
<button type="button" class="btn btn-primary" (click)="reset()">Reset</button> | |
</p> |
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
<ngb-accordion #acc="ngbAccordion" activeIds="ngb-panel-0"> | |
<ngb-panel title="Simple"> | |
<ng-template ngbPanelContent> | |
Sample content | |
</ng-template> | |
</ngb-panel> | |
<ngb-panel> | |
<ng-template ngbPanelTitle> | |
<span>★ <b>Fancy</b> title ★</span> |
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
{ | |
type: 'Pie', | |
data: Chartdata['Pie'], | |
options: { | |
donut: true, | |
showLabel: true, | |
height: '100%', | |
width: '100%', | |
chartPadding: { | |
top: 20, |
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
{ | |
type: 'Pie', | |
data: Chartdata['Pie'], | |
options: { | |
donut: true, | |
donutWidth: 60, | |
startAngle: 270, | |
total: 200, | |
showLabel: true, | |
width: '100%', |