Skip to content
Draft
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
4 changes: 3 additions & 1 deletion examples/angular/basic-app-table/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@
"@angular/forms": "^21.2.12",
"@angular/platform-browser": "^21.2.12",
"@faker-js/faker": "^10.4.0",
"@tanstack/angular-table": "^9.0.0-alpha.46",
"@tanstack/angular-devtools": "^0.0.4",
"@tanstack/angular-table": "^9.0.0-alpha.47",
"@tanstack/angular-table-devtools": "^9.0.0-alpha.43",
"rxjs": "~7.8.2",
"tslib": "^2.8.1"
},
Expand Down
20 changes: 18 additions & 2 deletions examples/angular/basic-app-table/src/app/app.config.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,22 @@
import { provideBrowserGlobalErrorListeners } from '@angular/core'
import { isDevMode, provideBrowserGlobalErrorListeners } from '@angular/core'
import { provideTanStackDevtools } from '@tanstack/angular-devtools/provider'
import type { ApplicationConfig } from '@angular/core'

export const appConfig: ApplicationConfig = {
providers: [provideBrowserGlobalErrorListeners()],
providers: [
provideBrowserGlobalErrorListeners(),
isDevMode()
? provideTanStackDevtools(() => ({
plugins: [
{
name: 'TanStack Table',
render: () =>
import('@tanstack/angular-table-devtools').then((m) =>
m.TableDevtoolsPanel(),
),
},
],
}))
: [],
],
}
7 changes: 7 additions & 0 deletions examples/angular/basic-app-table/src/app/app.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { ChangeDetectionStrategy, Component, signal } from '@angular/core'
import { FlexRender, createTableHook } from '@tanstack/angular-table'
import { injectTanStackTableDevtools } from '@tanstack/angular-table-devtools'
import { makeData } from './makeData'
import type { Person } from './makeData'

Expand Down Expand Up @@ -68,4 +69,10 @@ export class App {

refreshData = () => this.data.set(makeData(20))
stressTest = () => this.data.set(makeData(1_000))
constructor() {
injectTanStackTableDevtools(() => ({
table: this.table,
name: 'basic-app-table',
}))
}
}
4 changes: 3 additions & 1 deletion examples/angular/basic-inject-table/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@
"@angular/platform-browser": "^21.2.12",
"@angular/router": "^21.2.12",
"@faker-js/faker": "^10.4.0",
"@tanstack/angular-table": "^9.0.0-alpha.46",
"@tanstack/angular-devtools": "^0.0.4",
"@tanstack/angular-table": "^9.0.0-alpha.47",
"@tanstack/angular-table-devtools": "^9.0.0-alpha.43",
"rxjs": "~7.8.2",
"tslib": "^2.8.1"
},
Expand Down
21 changes: 19 additions & 2 deletions examples/angular/basic-inject-table/src/app/app.config.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,25 @@
import { isDevMode, provideBrowserGlobalErrorListeners } from '@angular/core'
import { provideTanStackDevtools } from '@tanstack/angular-devtools/provider'
import { provideRouter } from '@angular/router'
import { provideBrowserGlobalErrorListeners } from '@angular/core'
import { routes } from './app.routes'
import type { ApplicationConfig } from '@angular/core'

export const appConfig: ApplicationConfig = {
providers: [provideBrowserGlobalErrorListeners(), provideRouter(routes)],
providers: [
provideBrowserGlobalErrorListeners(),
provideRouter(routes),
isDevMode()
? provideTanStackDevtools(() => ({
plugins: [
{
name: 'TanStack Table',
render: () =>
import('@tanstack/angular-table-devtools').then((m) =>
m.TableDevtoolsPanel(),
),
},
],
}))
: [],
],
}
7 changes: 7 additions & 0 deletions examples/angular/basic-inject-table/src/app/app.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { ChangeDetectionStrategy, Component, signal } from '@angular/core'
import { FlexRender, injectTable, tableFeatures } from '@tanstack/angular-table'
import { injectTanStackTableDevtools } from '@tanstack/angular-table-devtools'
import { makeData } from './makeData'
import type { Person } from './makeData'
import type { ColumnDef } from '@tanstack/angular-table'
Expand Down Expand Up @@ -66,4 +67,10 @@ export class App {

refreshData = () => this.data.set(makeData(20))
stressTest = () => this.data.set(makeData(1_000))
constructor() {
injectTanStackTableDevtools(() => ({
table: this.table,
name: 'basic-inject-table',
}))
}
}
4 changes: 3 additions & 1 deletion examples/angular/column-ordering/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@
"@angular/platform-browser": "^21.2.12",
"@angular/router": "^21.2.12",
"@faker-js/faker": "^10.4.0",
"@tanstack/angular-table": "^9.0.0-alpha.46",
"@tanstack/angular-devtools": "^0.0.4",
"@tanstack/angular-table": "^9.0.0-alpha.47",
"@tanstack/angular-table-devtools": "^9.0.0-alpha.43",
"rxjs": "~7.8.2",
"tslib": "^2.8.1"
},
Expand Down
20 changes: 18 additions & 2 deletions examples/angular/column-ordering/src/app/app.config.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,22 @@
import { provideBrowserGlobalErrorListeners } from '@angular/core'
import { isDevMode, provideBrowserGlobalErrorListeners } from '@angular/core'
import { provideTanStackDevtools } from '@tanstack/angular-devtools/provider'
import type { ApplicationConfig } from '@angular/core'

export const appConfig: ApplicationConfig = {
providers: [provideBrowserGlobalErrorListeners()],
providers: [
provideBrowserGlobalErrorListeners(),
isDevMode()
? provideTanStackDevtools(() => ({
plugins: [
{
name: 'TanStack Table',
render: () =>
import('@tanstack/angular-table-devtools').then((m) =>
m.TableDevtoolsPanel(),
),
},
],
}))
: [],
],
}
7 changes: 7 additions & 0 deletions examples/angular/column-ordering/src/app/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import {
injectTable,
tableFeatures,
} from '@tanstack/angular-table'
import { injectTanStackTableDevtools } from '@tanstack/angular-table-devtools'
import { faker } from '@faker-js/faker'
import { makeData } from './makeData'
import type { Person } from './makeData'
Expand Down Expand Up @@ -118,4 +119,10 @@ export class App {

refreshData = () => this.data.set(makeData(20))
stressTest = () => this.data.set(makeData(1_000))
constructor() {
injectTanStackTableDevtools(() => ({
table: this.table,
name: 'column-ordering',
}))
}
}
4 changes: 3 additions & 1 deletion examples/angular/column-pinning-sticky/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@
"@angular/platform-browser": "^21.2.12",
"@angular/router": "^21.2.12",
"@faker-js/faker": "^10.4.0",
"@tanstack/angular-table": "^9.0.0-alpha.46",
"@tanstack/angular-devtools": "^0.0.4",
"@tanstack/angular-table": "^9.0.0-alpha.47",
"@tanstack/angular-table-devtools": "^9.0.0-alpha.43",
"rxjs": "~7.8.2",
"tslib": "^2.8.1"
},
Expand Down
20 changes: 18 additions & 2 deletions examples/angular/column-pinning-sticky/src/app/app.config.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,22 @@
import { provideBrowserGlobalErrorListeners } from '@angular/core'
import { isDevMode, provideBrowserGlobalErrorListeners } from '@angular/core'
import { provideTanStackDevtools } from '@tanstack/angular-devtools/provider'
import type { ApplicationConfig } from '@angular/core'

export const appConfig: ApplicationConfig = {
providers: [provideBrowserGlobalErrorListeners()],
providers: [
provideBrowserGlobalErrorListeners(),
isDevMode()
? provideTanStackDevtools(() => ({
plugins: [
{
name: 'TanStack Table',
render: () =>
import('@tanstack/angular-table-devtools').then((m) =>
m.TableDevtoolsPanel(),
),
},
],
}))
: [],
],
}
7 changes: 7 additions & 0 deletions examples/angular/column-pinning-sticky/src/app/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import {
injectTable,
tableFeatures,
} from '@tanstack/angular-table'
import { injectTanStackTableDevtools } from '@tanstack/angular-table-devtools'
import { faker } from '@faker-js/faker'
import { makeData } from './makeData'
import type { Person } from './makeData'
Expand Down Expand Up @@ -133,4 +134,10 @@ export class App {

refreshData = () => this.data.set(makeData(20))
stressTest = () => this.data.set(makeData(1_000))
constructor() {
injectTanStackTableDevtools(() => ({
table: this.table,
name: 'column-pinning-sticky',
}))
}
}
4 changes: 3 additions & 1 deletion examples/angular/column-pinning/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@
"@angular/platform-browser": "^21.2.12",
"@angular/router": "^21.2.12",
"@faker-js/faker": "^10.4.0",
"@tanstack/angular-table": "^9.0.0-alpha.46",
"@tanstack/angular-devtools": "^0.0.4",
"@tanstack/angular-table": "^9.0.0-alpha.47",
"@tanstack/angular-table-devtools": "^9.0.0-alpha.43",
"rxjs": "~7.8.2",
"tslib": "^2.8.1"
},
Expand Down
20 changes: 18 additions & 2 deletions examples/angular/column-pinning/src/app/app.config.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,22 @@
import { provideBrowserGlobalErrorListeners } from '@angular/core'
import { isDevMode, provideBrowserGlobalErrorListeners } from '@angular/core'
import { provideTanStackDevtools } from '@tanstack/angular-devtools/provider'
import type { ApplicationConfig } from '@angular/core'

export const appConfig: ApplicationConfig = {
providers: [provideBrowserGlobalErrorListeners()],
providers: [
provideBrowserGlobalErrorListeners(),
isDevMode()
? provideTanStackDevtools(() => ({
plugins: [
{
name: 'TanStack Table',
render: () =>
import('@tanstack/angular-table-devtools').then((m) =>
m.TableDevtoolsPanel(),
),
},
],
}))
: [],
],
}
7 changes: 7 additions & 0 deletions examples/angular/column-pinning/src/app/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import {
injectTable,
tableFeatures,
} from '@tanstack/angular-table'
import { injectTanStackTableDevtools } from '@tanstack/angular-table-devtools'
import { faker } from '@faker-js/faker'
import { NgTemplateOutlet, SlicePipe } from '@angular/common'
import { makeData } from './makeData'
Expand Down Expand Up @@ -138,4 +139,10 @@ export class App {

refreshData = () => this.data.set(makeData(20))
stressTest = () => this.data.set(makeData(1_000))
constructor() {
injectTanStackTableDevtools(() => ({
table: this.table,
name: 'column-pinning',
}))
}
}
4 changes: 3 additions & 1 deletion examples/angular/column-resizing-performant/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@
"@angular/platform-browser": "^21.2.12",
"@angular/router": "^21.2.12",
"@faker-js/faker": "^10.4.0",
"@tanstack/angular-table": "^9.0.0-alpha.46",
"@tanstack/angular-devtools": "^0.0.4",
"@tanstack/angular-table": "^9.0.0-alpha.47",
"@tanstack/angular-table-devtools": "^9.0.0-alpha.43",
"rxjs": "~7.8.2",
"tslib": "^2.8.1"
},
Expand Down
20 changes: 18 additions & 2 deletions examples/angular/column-resizing-performant/src/app/app.config.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,22 @@
import { provideBrowserGlobalErrorListeners } from '@angular/core'
import { isDevMode, provideBrowserGlobalErrorListeners } from '@angular/core'
import { provideTanStackDevtools } from '@tanstack/angular-devtools/provider'
import type { ApplicationConfig } from '@angular/core'

export const appConfig: ApplicationConfig = {
providers: [provideBrowserGlobalErrorListeners()],
providers: [
provideBrowserGlobalErrorListeners(),
isDevMode()
? provideTanStackDevtools(() => ({
plugins: [
{
name: 'TanStack Table',
render: () =>
import('@tanstack/angular-table-devtools').then((m) =>
m.TableDevtoolsPanel(),
),
},
],
}))
: [],
],
}
7 changes: 7 additions & 0 deletions examples/angular/column-resizing-performant/src/app/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import {
shallow,
tableFeatures,
} from '@tanstack/angular-table'
import { injectTanStackTableDevtools } from '@tanstack/angular-table-devtools'
import { makeData } from './makeData'
import { TableResizableCells } from './resizable-cell/resizable-cell'
import type { Person } from './makeData'
Expand Down Expand Up @@ -128,4 +129,10 @@ export class App {

refreshData = () => this.data.set(makeData(200))
stressTest = () => this.data.set(makeData(2_000))
constructor() {
injectTanStackTableDevtools(() => ({
table: this.table,
name: 'column-resizing-performant',
}))
}
}
4 changes: 3 additions & 1 deletion examples/angular/column-visibility/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@
"@angular/platform-browser": "^21.2.12",
"@angular/router": "^21.2.12",
"@faker-js/faker": "^10.4.0",
"@tanstack/angular-table": "^9.0.0-alpha.46",
"@tanstack/angular-devtools": "^0.0.4",
"@tanstack/angular-table": "^9.0.0-alpha.47",
"@tanstack/angular-table-devtools": "^9.0.0-alpha.43",
"rxjs": "~7.8.2",
"tslib": "^2.8.1"
},
Expand Down
20 changes: 18 additions & 2 deletions examples/angular/column-visibility/src/app/app.config.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,22 @@
import { provideBrowserGlobalErrorListeners } from '@angular/core'
import { isDevMode, provideBrowserGlobalErrorListeners } from '@angular/core'
import { provideTanStackDevtools } from '@tanstack/angular-devtools/provider'
import type { ApplicationConfig } from '@angular/core'

export const appConfig: ApplicationConfig = {
providers: [provideBrowserGlobalErrorListeners()],
providers: [
provideBrowserGlobalErrorListeners(),
isDevMode()
? provideTanStackDevtools(() => ({
plugins: [
{
name: 'TanStack Table',
render: () =>
import('@tanstack/angular-table-devtools').then((m) =>
m.TableDevtoolsPanel(),
),
},
],
}))
: [],
],
}
7 changes: 7 additions & 0 deletions examples/angular/column-visibility/src/app/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import {
isFunction,
tableFeatures,
} from '@tanstack/angular-table'
import { injectTanStackTableDevtools } from '@tanstack/angular-table-devtools'
import { makeData } from './makeData'
import type { Person } from './makeData'
import type { ColumnDef, ColumnVisibilityState } from '@tanstack/angular-table'
Expand Down Expand Up @@ -105,4 +106,10 @@ export class App {

refreshData = () => this.data.set(makeData(20))
stressTest = () => this.data.set(makeData(1_000))
constructor() {
injectTanStackTableDevtools(() => ({
table: this.table,
name: 'column-visibility',
}))
}
}
4 changes: 3 additions & 1 deletion examples/angular/composable-tables/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@
"@angular/platform-browser": "^21.2.12",
"@angular/router": "^21.2.12",
"@faker-js/faker": "^10.4.0",
"@tanstack/angular-table": "^9.0.0-alpha.46",
"@tanstack/angular-devtools": "^0.0.4",
"@tanstack/angular-table": "^9.0.0-alpha.47",
"@tanstack/angular-table-devtools": "^9.0.0-alpha.43",
"rxjs": "~7.8.2",
"tslib": "^2.8.1"
},
Expand Down
Loading