-
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.
Browse files
Browse the repository at this point in the history
- Loading branch information
1 parent
7201fcd
commit 479778a
Showing
6 changed files
with
30 additions
and
14 deletions.
There are no files selected for viewing
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
8 changes: 2 additions & 6 deletions
8
demo/src/app/components/+alerts/demos/dismiss-on-timeout/dismiss-on-timeout.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,9 +1,5 @@ | ||
<alert type="success" dismissOnTimeout="5000"> | ||
<strong>Well done!</strong> You successfully read this important alert message. | ||
</alert> | ||
|
||
<p>If you missed alert on top of me, just press <code>Add more</code> button</p> | ||
<p>If you missed alert under me, just press <code>Add more</code> button</p> | ||
<div *ngFor="let alert of alerts"> | ||
<alert [type]="alert.type" [dismissOnTimeout]="alert.timeout">{{ alert.msg }}</alert> | ||
<alert [type]="alert.type" [dismissOnTimeout]="alert.timeout" (onClosed)="onClosed(alert)">{{ alert.msg }}</alert> | ||
</div> | ||
<button type="button" class="btn btn-primary" (click)="add()">Add more</button> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
<div *ngFor="let alert of alerts"> | ||
<alert [type]="alert.type" [dismissible]="dismissible">{{ alert.msg }}</alert> | ||
<alert [type]="alert.type" [dismissible]="dismissible" (onClosed)="onClosed(alert)">{{ alert.msg }}</alert> | ||
</div> | ||
<button type="button" class="btn btn-primary" (click)="dismissible = !dismissible">Toggle dismissible</button> | ||
<button type="button" class="btn btn-primary" (click)="reset()">Reset</button> |
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