@angular/material/bottom-sheet#MAT_BOTTOM_SHEET_DATA TypeScript Examples
The following examples show how to use
@angular/material/bottom-sheet#MAT_BOTTOM_SHEET_DATA.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: term-hint.component.ts From open-genes-frontend with Mozilla Public License 2.0 | 6 votes |
constructor(
@Inject(MAT_BOTTOM_SHEET_DATA)
public data = {
term: {
title: 'term',
disambiguation: 'disambiguation',
},
},
private _windowService: WindowService,
private bottomSheetRef: MatBottomSheetRef,
private readonly cdRef: ChangeDetectorRef
) {
super(_windowService);
}
Example #2
Source File: confirm-delete.component.ts From budget-angular with GNU General Public License v3.0 | 5 votes |
constructor(
private bottomSheetRef: MatBottomSheetRef<ConfirmDeleteComponent>,
@Inject(MAT_BOTTOM_SHEET_DATA) private data: DeleteExpenseData,
private expenseSevice: ExpensesService
) {}
Example #3
Source File: add-txn-to-report-dialog.component.ts From fyle-mobile-app with MIT License | 5 votes |
constructor(
private offlineService: OfflineService,
@Inject(MAT_BOTTOM_SHEET_DATA) public data: { openReports: ExtendedReport[] },
private matBottomsheet: MatBottomSheet
) {}
Example #4
Source File: common-bottom-sheet.component.ts From open-genes-frontend with Mozilla Public License 2.0 | 5 votes |
constructor(
@Inject(MAT_BOTTOM_SHEET_DATA)
public data: {
title?: string;
template: TemplateRef<any>;
},
private bottomSheetRef: MatBottomSheetRef<CommonBottomSheetComponent>
) {}