newComposedPlaceholder()
Home > @gooddata/sdk-ui > newComposedPlaceholder
newComposedPlaceholder() function
Create a new composed placeholder. See IComposedPlaceholder.
Signature:
export declare function newComposedPlaceholder<TValue extends any[], TReturn = PlaceholdersResolvedValues<TValue>, TContext = UnionToIntersection<ComposedPlaceholderResolutionContext<Flatten<TValue>>>>(placeholders: [...TValue], computeValue?: (values: PlaceholdersResolvedValues<TValue>, resolutionContext: TContext) => TReturn): IComposedPlaceholder<TReturn, TValue, TContext>;
Parameters
Parameter | Type | Description |
---|---|---|
placeholders | [...TValue] | |
computeValue | (values: PlaceholdersResolvedValues<TValue>, resolutionContext: TContext) => TReturn | (Optional) |
Returns:
IComposedPlaceholder<TReturn, TValue, TContext>