bucketAttributes()
Home > @gooddata/sdk-model > bucketAttributes
bucketAttributes() function
Gets all attributes matching the provided predicate from the bucket.
Signature:
export declare function bucketAttributes(bucket: IBucket, predicate?: AttributePredicate): IAttribute[];
Parameters
Parameter |
Type |
Description |
---|---|---|
bucket |
bucket to work with | |
predicate |
(Optional) attribute predicate; anyAttribute predicate is default |
Returns:
empty list if none match
Remarks
If no predicate is provided, then the function defaults to anyAttribute predicate - meaning all attributes from the bucket will be returned.