This repository has been archived by the owner on May 7, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(toast-notificatio-list): Add toast notification list
- Loading branch information
1 parent
7722be0
commit b3b217c
Showing
17 changed files
with
348 additions
and
99 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
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
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
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
80 changes: 78 additions & 2 deletions
80
src/app/notification/examples/toast-notification-list-example.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,12 +1,88 @@ | ||
<div class="padding-15"> | ||
<div class="row padding-bottom-15"> | ||
<div class="col-xs-12"> | ||
<div><a routerLink="/home" routerLinkActive="active">Home</a> > Toast List Notification</div> | ||
<div><a routerLink="/home" routerLinkActive="active">Home</a> > Toast Notification List</div> | ||
</div> | ||
</div> | ||
<div class="row"> | ||
<div class="col-md-12"> | ||
|
||
<alm-toast-notification-list | ||
[notifications]="notifications" | ||
(onActionSelect)="handleAction($event)" | ||
(onCloseSelect)="handleClose($event)" | ||
(onViewingChange)="handleViewingChange($event)"> | ||
</alm-toast-notification-list> | ||
</div> | ||
</div> | ||
<div class="row example-container"> | ||
<div class="col-md-12"> | ||
<form class="form-horizontal"> | ||
<div class="form-group"> | ||
<label class="col-sm-2 control-label" for="header">Header:</label> | ||
<div class="col-sm-10"> | ||
<input id="header" name="header" | ||
type="text" class="form-control" [(ngModel)]="header"/> | ||
</div> | ||
</div> | ||
<div class="form-group"> | ||
<label class="col-sm-2 control-label" for="message">Message:</label> | ||
<div class="col-sm-10"> | ||
<input id="message" name="message" | ||
type="text" class="form-control" [(ngModel)]="message"/> | ||
</div> | ||
</div> | ||
<div class="form-group"> | ||
<label class="col-sm-2 control-label" for="message">Primary Action:</label> | ||
<div class="col-sm-10"> | ||
<input id="primaryAction" name="primaryAction" [(ngModel)]="primaryAction.title" | ||
type="text" class="form-control" /> | ||
</div> | ||
</div> | ||
<div class="form-group"> | ||
<label class="col-sm-2 control-label" for="type">Type:</label> | ||
<div class="col-sm-10"> | ||
<div class="btn-group dropdown" dropdown> | ||
<button id="type" type="button" class="btn btn-default" dropdownToggle> | ||
{{type}} | ||
<span class="caret"></span> | ||
</button> | ||
<ul class="dropdown-menu" dropdownMenu role="menu"> | ||
<li role="menuitem" *ngFor="let item of types" [ngClass]="{'selected': item === type}"> | ||
<a href="javascript:void(0);" tabindex="-1" (click)="handleType(item)"> | ||
{{item}} | ||
</a> | ||
</li> | ||
</ul> | ||
</div> | ||
</div> | ||
</div> | ||
<div class="form-group"> | ||
<label class="col-sm-2 control-label" for="showClose">Show Close:</label> | ||
<div class="col-sm-2"> | ||
<input id="showClose" name="showClose" | ||
type="checkbox" [(ngModel)]="showClose"/> | ||
</div> | ||
<label class="col-sm-2 control-label" for="showMenu">Show More Actions:</label> | ||
<div class="col-sm-2"> | ||
<input id="showMenu" name="showMenu" type="checkbox" [(ngModel)]="showMoreActions"/> | ||
</div> | ||
<label class="col-sm-2 control-label" for="type">Persistent:</label> | ||
<div class="col-sm-2"> | ||
<input id="showPersistent" name="showPersistent" type="checkbox" [(ngModel)]="isPersistent"/> | ||
</div> | ||
</div> | ||
<div class="form-group"> | ||
<div class="col-sm-12"> | ||
<button (click)="notify()">Add notification - Click me several times</button> | ||
</div> | ||
</div> | ||
</form> | ||
</div> | ||
<div class="col-md-12"> | ||
<label class="actions-label">Actions: </label> | ||
</div> | ||
<div class="col-md-12"> | ||
<textarea rows="3" class="col-md-12">{{actionText}}</textarea> | ||
</div> | ||
</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
Oops, something went wrong.