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 db0c2d9b5a
fix: simplify some column pinning + visibility memo deps and performance (#6259)
* fix: simplify some column pinning + visibility memo deps and performance

* fix pnpm link issue with match-sorter-utils
2026-05-13 14:21:54 -05:00

4.3 KiB

id title
FlexRenderComponent FlexRenderComponent

Interface: FlexRenderComponent<TComponent>

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

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

allowedInputNames

readonly allowedInputNames: string[];

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

List of allowed input names.


allowedOutputNames

readonly allowedOutputNames: string[];

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

List of allowed output names.


bindings?

optional bindings: Binding[];

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

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:209

The component type


directives?

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

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

Directives that should be applied to the component.

See


injector?

readonly optional injector: Injector;

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

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:233

Component instance inputs. Set via componentRef.setInput API)

See

FlexRenderOptions#inputs


mirror

readonly mirror: ComponentMirror<TComponent>;

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

Reflected metadata about the component.


outputs?

readonly optional outputs: Outputs<TComponent>;

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

Component instance outputs. Subscribed via OutputEmitterRef#subscribe

See

FlexRenderOptions#outputs