Defined in: flex-render/flexRenderComponent.ts:205
Wrapper interface for a component that will be used as content for FlexRenderDirective. Can be created using flexRenderComponent helper.
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>();
}
TComponent = any
readonly allowedInputNames: string[];
Defined in: flex-render/flexRenderComponent.ts:217
List of allowed input names.
readonly allowedOutputNames: string[];
Defined in: flex-render/flexRenderComponent.ts:221
List of allowed output names.
optional bindings: Binding[];
Defined in: flex-render/flexRenderComponent.ts:245
Bindings to apply to the root component
FlexRenderOptions#bindings
readonly component: Type<TComponent>;
Defined in: flex-render/flexRenderComponent.ts:209
The component type
optional directives: (Type<unknown> | DirectiveWithBindings<unknown>)[];
Defined in: flex-render/flexRenderComponent.ts:251
Directives that should be applied to the component.
readonly optional injector: Injector;
Defined in: flex-render/flexRenderComponent.ts:239
Optional Injector that will be used when rendering the component.
FlexRenderOptions#injector
readonly optional inputs: Inputs<TComponent>;
Defined in: flex-render/flexRenderComponent.ts:233
Component instance inputs. Set via componentRef.setInput API)
FlexRenderOptions#inputs
readonly mirror: ComponentMirror<TComponent>;
Defined in: flex-render/flexRenderComponent.ts:213
Reflected metadata about the component.
readonly optional outputs: Outputs<TComponent>;
Defined in: flex-render/flexRenderComponent.ts:227
Component instance outputs. Subscribed via OutputEmitterRef#subscribe
FlexRenderOptions#outputs