MCPcopy Index your code
hub / github.com/TanStack/table / AppComponent

Class AppComponent

examples/angular/sub-components/src/app/app.component.ts:105–123  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

103 changeDetection: ChangeDetectionStrategy.OnPush,
104})
105export class AppComponent {
106 readonly data = signal<Person[]>(makeData(10))
107 readonly expanded = signal<ExpandedState>({})
108
109 readonly table = createAngularTable(() => ({
110 data: this.data(),
111 columns,
112 state: {
113 expanded: this.expanded(),
114 },
115 onExpandedChange: (updater) =>
116 typeof updater === 'function'
117 ? this.expanded.update(updater)
118 : this.expanded.set(updater),
119 getRowCanExpand: () => true,
120 getCoreRowModel: getCoreRowModel(),
121 getExpandedRowModel: getExpandedRowModel(),
122 }))
123}

Callers

nothing calls this directly

Calls 5

makeDataFunction · 0.90
createAngularTableFunction · 0.90
getCoreRowModelFunction · 0.85
getExpandedRowModelFunction · 0.85
updateMethod · 0.45

Tested by

no test coverage detected