Skip to content

refactor(snackbar): update samples according to the latest changes #2730

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Nov 16, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ export class MaskSample1Component {
}

private notify(snackbar, message, input) {
snackbar.message = message;
snackbar.open();
snackbar.open(message);
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<div igxOverlayOutlet>
<button igxButton="raised" igxRipple="white" (click)="openDialog()">Show Styled Dialog</button>
<igx-dialog #dialog1 message="This will create a new social media account.">
<igx-dialog #dialog1 message="This will create a new social media account.">
<igx-dialog-title>
<div class="dialog-container">
<igx-icon>account_box</igx-icon>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@
</igx-expansion-panel-body>
</igx-expansion-panel>

<igx-toast displayTime=1500 #eventToast></igx-toast>
<igx-toast displayTime="1500" #eventToast></igx-toast>
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ export class DatepickerSample7Component {
}

private notify(message: string): void {
this.snackbar.message = message;
this.snackbar.open();
this.snackbar.open(message);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,6 @@
</ng-template>
</igx-column>
</igx-grid>
</div>
<div class="snackbar_wrapper">
<igx-snackbar #snackbar [autoHide]="true" displayTime="2500" actionText="Undo" (clicked)="restoreRow()">
<igx-snackbar #snackbar [outlet]="outlet" displayTime="2500" actionText="Undo" (clicked)="restoreRow()">
</igx-snackbar>
</div>
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,5 @@
</ng-template>
</igx-column>
</igx-tree-grid>
<span id="message" >May contain allergens.</span>
<span id="message">May contain allergens.</span>
</div>