Appearance
web / components/ui/data-table/render-helpers / RenderSnippetConfig
Class: RenderSnippetConfig<TProps>
Defined in: components/ui/data-table/render-helpers.ts:46
A helper class to make it easy to identify Svelte Snippets in columnDef.cell and columnDef.header properties.
NOTE: This class should only be used internally by the adapter. If you're reading this and you don't know what this is for, you probably don't need it.
Example
svelte
{@const result = content(context as any)}
{#if result instanceof RenderSnippetConfig}
{@const { snippet, params } = result}
{@render snippet(params)}
{/if}Type Parameters
TProps
TProps
Constructors
Constructor
new RenderSnippetConfig<
TProps>(snippet,params):RenderSnippetConfig<TProps>
Defined in: components/ui/data-table/render-helpers.ts:49
Parameters
snippet
Snippet<[TProps]>
params
TProps
Returns
RenderSnippetConfig<TProps>
Properties
params
params:
TProps
Defined in: components/ui/data-table/render-helpers.ts:48
snippet
snippet:
Snippet<[TProps]>
Defined in: components/ui/data-table/render-helpers.ts:47