newBucket()
Home > @gooddata/sdk-model > newBucket
newBucket() function
Creates a new bucket with the provided id and all the specified content.
Signature:
export declare function newBucket(localId: string, ...content: Array<IAttributeOrMeasure | ITotal | undefined>): IBucket;
Parameters
Parameter | Type | Description |
---|---|---|
localId | string | bucket identifier |
content | Array<IAttributeOrMeasure | ITotal | undefined> | items to put into the bucket; attributes, measures and/or totals |
Returns:
always new instance