useComposedPlaceholder()
Home > @gooddata/sdk-ui > useComposedPlaceholder
useComposedPlaceholder() function
React hook to obtain composed placeholder value.
Signature:
export declare function useComposedPlaceholder<TContext, TPlaceholder extends IComposedPlaceholder<any, any, TContext>>(placeholder: TPlaceholder, resolutionContext?: TContext): PlaceholderResolvedValue<TPlaceholder>;
Parameters
Parameter | Type | Description |
---|---|---|
placeholder | TPlaceholder | |
resolutionContext | TContext | (Optional) |
Returns:
PlaceholderResolvedValue<TPlaceholder>
Remarks
You can provide custom context for the composed placeholders resolution. See IComposedPlaceholder.