Skip to content

Commit 870cf47

Browse files
committed
fix: sync row defatil grid option to fix build
1 parent 1cea0dc commit 870cf47

6 files changed

+5
-22
lines changed

src/app/examples/grid-contextmenu.component.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ const priorityExportFormatter: Formatter = (row, cell, value, columnDef, dataCon
5151
};
5252

5353
const taskTranslateFormatter: Formatter = (row, cell, value, columnDef, dataContext, grid) => {
54-
const gridOptions = grid?.getOptions?.() as GridOption;
54+
const gridOptions = grid.getOptions() as GridOption;
5555
const translate = gridOptions.i18n;
5656

5757
return translate && translate.instant && translate.instant('TASK_X', { x: value });

src/app/examples/grid-editor.component.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ const URL_COUNTRY_NAMES = 'assets/data/country_names.json';
3636
const myCustomTitleValidator: EditorValidator = (value: any, args?: EditorArguments) => {
3737
// you can get the Editor Args which can be helpful, e.g. we can get the Translate Service from it
3838
const grid = args && args.grid;
39-
const gridOptions = (grid?.getOptions?.() ?? {}) as GridOption;
39+
const gridOptions = (grid?.getOptions() ?? {}) as GridOption;
4040
const translate = gridOptions.i18n;
4141

4242
// to get the editor object, you'll need to use "internalColumnEditor"

src/app/examples/grid-localization.component.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ const NB_ITEMS = 1500;
2222

2323
// create a custom translate Formatter (typically you would move that a separate file, for separation of concerns)
2424
const taskTranslateFormatter: Formatter = (row, cell, value, columnDef, dataContext, grid) => {
25-
const gridOptions = grid?.getOptions?.() as GridOption;
25+
const gridOptions = grid.getOptions() as GridOption;
2626
const translate = gridOptions.i18n as TranslateService;
2727

2828
return translate.instant('TASK_X', { x: value });

src/app/examples/grid-range.component.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ function randomBetween(min: number, max: number): number {
2929

3030
// create a custom translate Formatter (typically you would move that a separate file, for separation of concerns)
3131
const taskTranslateFormatter: Formatter = (row, cell, value, columnDef, dataContext, grid) => {
32-
const gridOptions = grid?.getOptions?.() as GridOption;
32+
const gridOptions = grid.getOptions() as GridOption;
3333
const translate = gridOptions.i18n as TranslateService;
3434

3535
return translate.instant('TASK_X', { x: value });

src/app/examples/grid-tree-data-hierarchical.component.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ export class GridTreeDataHierarchicalComponent implements OnInit {
249249
}
250250

251251
treeFormatter: Formatter = (_row, _cell, value, _columnDef, dataContext, grid) => {
252-
const gridOptions = grid.getOptions() as GridOption;
252+
const gridOptions = grid.getOptions();
253253
const treeLevelPropName = gridOptions.treeDataOptions && gridOptions.treeDataOptions.levelPropName || '__treeLevel';
254254
if (value === null || value === undefined || dataContext === undefined) {
255255
return '';

src/app/modules/angular-slickgrid/models/rowDetailView.interface.ts

-17
Original file line numberDiff line numberDiff line change
@@ -13,21 +13,4 @@ export interface RowDetailView extends UniversalRowDetailView {
1313

1414
/** View Component that will be loaded in the row detail after the async function completed */
1515
viewComponent: Type<object>;
16-
17-
// --
18-
// Callback Methods
19-
20-
/**
21-
* HTML Preload Template that will be used before the async process (typically used to show a spinner/loading)
22-
* It's preferable to use the "preloadView" property to use an Angular View instead of plain HTML.
23-
* If you still wish to use these methods, we strongly suggest you to sanitize your HTML, e.g. "DOMPurify.sanitize()"
24-
*/
25-
preTemplate?: () => string;
26-
27-
/**
28-
* HTML Post Template (when Row Detail data is available) that will be loaded once the async function finishes
29-
* It's preferable to use the "preloadView" property to use an Angular View instead of plain HTML
30-
* If you still wish to use these methods, we strongly suggest you to sanitize your HTML, e.g. "DOMPurify.sanitize()"
31-
*/
32-
postTemplate?: (item: any) => string;
3316
}

0 commit comments

Comments
 (0)