Skip to content

Commit

Permalink
Merge 0bf202b into e131c0c
Browse files Browse the repository at this point in the history
  • Loading branch information
rmathew1011 committed Apr 13, 2021
2 parents e131c0c + 0bf202b commit 0b9a6ae
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/app/tl-modal/tl-modal.component.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
<wvr-modal-component #animationRoot
[themeVariant]="btnThemeVariant"
[title]="title"
[btnText]="btnText">
[btnText]="btnText"
[btnVisible]="btnVisible">
<ng-content select="tl-modal-body" ngProjectAs="wvre-modal-body"></ng-content>
<ng-content select="tl-modal-footer" ngProjectAs="wvre-modal-footer"></ng-content>
</wvr-modal-component>
2 changes: 2 additions & 0 deletions src/app/tl-modal/tl-modal.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ export class TlModalComponent extends TamuAbstractBaseComponent {

@Input() btnText;

@Input() btnVisible = 'true';

constructor(injector: Injector) {
super(injector);
}
Expand Down
10 changes: 10 additions & 0 deletions src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -730,6 +730,16 @@
</tl-button>
</tl-modal-footer>
</tl-modal>

<tl-modal title="Tl Modal 2" btn-text="Launch Tl Modal Button" btn-visible="false">
<tl-modal-body>
<wvre-text value="Tl Modal Message"></wvre-text>
</tl-modal-body>
<tl-modal-footer>
<tl-button btn-txt="Cancel" theme-variant="secondary" dispatch-action="Modal.closeModal" dispatch-action-props="{id: 'Tl Modal 2'}">
</tl-button>
</tl-modal-footer>
</tl-modal>
</div>
<div class="container" style="text-align: center;margin: 10px 60px;">
<wvre-text value="Editor Component" text-decoration="underline"></wvre-text><br /><br />
Expand Down

0 comments on commit 0b9a6ae

Please sign in to comment.