Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 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 @@ -41,9 +41,9 @@ export function createAggregatedTable(
placeholder: 'No Call Tree Available',
height: '100%',
maxHeight: '100%',
// @ts-expect-error custom property for module/RowKeyboardNavigation + MiddleRowFocus
// @ts-expect-error custom property for module/RowKeyboardNavigation + ScrollAnchor
rowKeyboardNavigation: true,
middleRowFocus: true,
scrollAnchor: true,
dataTree: true,
dataTreeChildColumnCalcs: false,
dataTreeBranchElement: '<span/>',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ export function createBottomUpTable(
height: '100%',
maxHeight: '100%',
rowKeyboardNavigation: true,
middleRowFocus: true,
scrollAnchor: true,
dataTree: true,
dataTreeChildColumnCalcs: false,
dataTreeBranchElement: '<span/>',
Expand Down
4 changes: 2 additions & 2 deletions log-viewer/src/features/call-tree/components/TableShared.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import { Tabulator } from 'tabulator-tables';

import * as CommonModules from '../../../tabulator/module/CommonModules.js';
import { Find } from '../../../tabulator/module/Find.js';
import { MiddleRowFocus } from '../../../tabulator/module/MiddleRowFocus.js';
import { RowKeyboardNavigation } from '../../../tabulator/module/RowKeyboardNavigation.js';
import { RowNavigation } from '../../../tabulator/module/RowNavigation.js';
import { ScrollAnchor } from '../../../tabulator/module/ScrollAnchor.js';
import type { AggregatedRow, BottomUpRow } from '../utils/Aggregation.js';
import type { MergedCalltreeRow } from '../utils/MergeAdjacent.js';

Expand All @@ -24,7 +24,7 @@ export interface TableCallbacks {

export function registerTableModules(): void {
Tabulator.registerModule(Object.values(CommonModules));
Tabulator.registerModule([RowKeyboardNavigation, RowNavigation, MiddleRowFocus, Find]);
Tabulator.registerModule([RowKeyboardNavigation, RowNavigation, ScrollAnchor, Find]);
}

export function headerSortElement(_column: unknown, dir: string): string {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ export function createTimeOrderTable(
maxHeight: '100%',
// custom property for datagrid/module/RowKeyboardNavigation
rowKeyboardNavigation: true,
// custom property for module/MiddleRowFocus
middleRowFocus: true,
// custom property for module/ScrollAnchor
scrollAnchor: true,
dataTree: true,
dataTreeChildColumnCalcs: false,
dataTreeBranchElement: '<span/>',
Expand Down
335 changes: 0 additions & 335 deletions log-viewer/src/tabulator/module/MiddleRowFocus.ts

This file was deleted.

Loading
Loading