IDataSliceCollection
Home > @gooddata/sdk-ui > IDataSliceCollection
IDataSliceCollection interface
An iterable collection of data slices.
Signature:
export interface IDataSliceCollection extends Iterable<IDataSlice>
Extends: Iterable<IDataSlice>
Remarks
The collection additionally includes basic information about the origin of the data slices that can be iterated - their number and attributes or totals that were used for slicing.
The slices are iterated in the order in which they appear in the underlying results; server side sorting specified at the execution time is thus reflected and honored during the iteration.
Properties
Property | Modifiers | Type | Description |
---|---|---|---|
count | readonly | number | Number of available data slices |
descriptors | readonly | Array<IAttributeDescriptor | ITotal> | Descriptors of attributes and/or totals that were used to create data slices. |
Methods
Method | Description |
---|---|
toArray() | Returns all data slices in an array. |