0
Fork 0
mirror of https://github.com/TanStack/table.git synced 2026-11-18 18:55:54 +00:00
table/docs/framework/angular/reference/interfaces/FlexRenderComponent.md
Kevin Van Cott 87c6bcc52a
feat(table-core): Further improve tree-shaking across features (#6626)
* feat(table-core): Further improve tree-shaking across features

Keep column ordering, column pinning, and row expanding code out of the
core bundle, route more cross-feature reads through feature stubs, and
stop allocating unused onAfterUpdate wrappers in production memos.

* refactor(table-core): register internal cross-feature fns as table APIs

Replace init*InstanceData function storage with @internal table APIs
registered via assignTableAPIs, route faceting through the
getCanGlobalFilter stub, and enforce feature boundaries with
import/no-restricted-paths. Regenerate reference docs and fix stale
docs config links.

---------
2026-10-12 09:51:47 -05:00

4.4 KiB

id title
FlexRenderComponent FlexRenderComponent

Defined in: packages/angular-table/src/flex-render/flexRenderComponent.ts:240

Wrapper interface for a component that will be used as content for FlexRenderDirective. Can be created using flexRenderComponent helper.

Example

import {flexRenderComponent} from '@tanstack/angular-table'

// Usage in cell/header/footer definition
const columns = [
  {
    cell: ({ row }) => {
       return flexRenderComponent(MyComponent, {
         inputs: { value: mySignalValue() },
         outputs: { valueChange: (val) => {} }
         // or using angular createComponent#bindings api
         bindings: [
           inputBinding('value', mySignalValue),
           outputBinding('valueChange', value => {
             console.log("my value changed to", value)
           })
         ]
       })
    },
  },
]

import {input, output} from '@angular/core';

@Component({
 selector: 'my-component',
})
class MyComponent {
   readonly value = input(0);
   readonly valueChange = output<number>();
}

Type Parameters

TComponent

TComponent = any

Properties

bindings?

optional bindings?: Binding[];

Defined in: packages/angular-table/src/flex-render/flexRenderComponent.ts:283

Bindings to apply to the root component

See

FlexRenderOptions#bindings


component

readonly component: Type<TComponent>;

Defined in: packages/angular-table/src/flex-render/flexRenderComponent.ts:244

The component type


directives?

optional directives?: (Type<unknown> | DirectiveWithBindings<unknown>)[];

Defined in: packages/angular-table/src/flex-render/flexRenderComponent.ts:289

Directives that should be applied to the component.

See


injector?

readonly optional injector?: Injector;

Defined in: packages/angular-table/src/flex-render/flexRenderComponent.ts:277

Optional Injector that will be used when rendering the component.

See

FlexRenderOptions#injector


inputs?

readonly optional inputs?: Inputs<TComponent>;

Defined in: packages/angular-table/src/flex-render/flexRenderComponent.ts:271

Component instance inputs. Set via componentRef.setInput API)

See

FlexRenderOptions#inputs


key?

readonly optional key?: string | number;

Defined in: packages/angular-table/src/flex-render/flexRenderComponent.ts:251

Optional identity used together with the component type to decide whether an existing component instance can be reused.

See

FlexRenderOptions#key


metadata

readonly metadata: ResolvedComponentMetadata<TComponent>;

Defined in: packages/angular-table/src/flex-render/flexRenderComponent.ts:259

Cached component metadata used by the flex renderer.


mirror

readonly mirror: ComponentMirror<TComponent>;

Defined in: packages/angular-table/src/flex-render/flexRenderComponent.ts:255

Reflected metadata about the component.


outputs?

readonly optional outputs?: Outputs<TComponent>;

Defined in: packages/angular-table/src/flex-render/flexRenderComponent.ts:265

Component instance outputs. Subscribed via OutputEmitterRef#subscribe

See

FlexRenderOptions#outputs