-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2635ed3
commit f223e0a
Showing
3 changed files
with
34 additions
and
9 deletions.
There are no files selected for viewing
17 changes: 9 additions & 8 deletions
17
projects/wvr-elements/src/lib/wvr-modal/wvr-modal.component.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,40 +1,41 @@ | ||
<wvr-modal-wrapper #animationRoot> | ||
|
||
<wvre-button | ||
<wvr-button-component | ||
*ngIf="btnVisible === 'true'" | ||
[btnTxt]="btnText" | ||
[dispatchAction]="'Modal.openModal'" | ||
[dispatchActionProps]="openProps" | ||
[themeVariant]="btnThemeVariant"> | ||
</wvre-button> | ||
</wvr-button-component> | ||
|
||
<ng-template #modalTemplate let-modal> | ||
<modal-content></modal-content> | ||
</ng-template> | ||
|
||
<modal-container #modalContent class="wvr-hidden wvr-bootstrap"> | ||
<ng-container *ngTemplateOutlet="modalHeader"></ng-container> | ||
<ng-container *ngTemplateOutlet="modalBody"></ng-container> | ||
<ng-container *ngTemplateOutlet="modalFooter"></ng-container> | ||
</modal-container> | ||
|
||
<!-- modalHeader --> | ||
<ng-template #modalHeader> | ||
<div class="modal-header {{additionalClasses('header')}}"> | ||
<h4 class="modal-title" id="modal-basic-title">{{title}}</h4> | ||
</div> | ||
</ng-template> | ||
|
||
<!-- modalBody --> | ||
<ng-template #modalBody> | ||
<div class="modal-body"> | ||
<ng-content select="wvre-modal-body"></ng-content> | ||
</div> | ||
</ng-template> | ||
|
||
<!-- modalFooter --> | ||
<ng-template #modalFooter> | ||
<div class="modal-footer {{additionalClasses('footer')}}"> | ||
<ng-content select="wvre-modal-footer"></ng-content> | ||
</div> | ||
</ng-template> | ||
</ng-template> | ||
</wvr-modal-wrapper> |
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