IComposedPlaceholder
Home > @gooddata/sdk-ui > IComposedPlaceholder
IComposedPlaceholder interface
Represents placeholder composed from other placeholders.
Signature:
export interface IComposedPlaceholder<TReturn, TValue extends any[], TContext>
Remarks
You can perform computation on top of resolved placeholder values. Composed placeholders accepts also other composed placeholders as an input.
You can provide custom resolution context to the composed placeholders, and use it in your computation, but be aware that this context is shared across all composed placeholders in the call tree (e.g. when you are calling composed placeholder composed from other composed placeholders, each composed placeholder will be called with the same resolution context).
Properties
Property | Type | Description |
---|---|---|
computeValue | (values: PlaceholdersResolvedValues<TValue>, resolutionContext: TContext) => TReturn | |
placeholders | TValue | |
type | "IComposedPlaceholder" | |
use | IUseComposedPlaceholderHook<IComposedPlaceholder<TReturn, TValue, TContext>> |