Card Class
A card(s) displayed within the CardItem.
Declaration
export class Card extends KpiElement
Remarks
To create a card(s) within the CardItem, use the CardDashboardItem.Cards property that accepts Card class objects. An API exposed by the Card class includes the following main members:
- The KpiElement.actualValue and KpiElement.targetValue properties provide measure values for a card.
- The SeriesDashboardItem.seriesDimensions property provides dimension values that are used to create multiple cards for the predefined set of measures.
- The Card.layoutTemplate property allows you to customize card layouts.
Inherited Members
Inheritance
KpiElement
Card
constructor(dataItemProvider)
Declaration
constructor(
dataItemProvider: DataDashboardItem,
modelJson?: any,
serializer?: DxDesigner.Analytics.Utils.ModelSerializer
)
Parameters
Name | Type | Description |
---|---|---|
dataItemProvider | DataDashboardItem | |
modelJson | any | A JSON object used for a dashboard deserialization. Do not pass this parameter directly. |
serializer | DxDesigner.Analytics.Utils.ModelSerializer | An object used for a dashboard deserialization. Do not pass this parameter directly. |
Properties
cardDeltaOptions Property
Declaration
cardDeltaOptions: CardDeltaOptions
Property Value
Type |
---|
CardDeltaOptions |
layoutTemplate Property
Declaration
layoutTemplate: ko.Observable<CardLayoutTemplate>
Property Value
Type |
---|
Observable<CardLayoutTemplate> |
showSparkline Property
Declaration
showSparkline: ko.Observable<boolean>
Property Value
Type |
---|
Observable<boolean> |
sparklineOptions Property
Declaration
sparklineOptions: SparklineOptions
Property Value
Type |
---|
SparklineOptions |
type Property
Declaration
type: ko.Observable<string>
Property Value
Type |
---|
Observable<string> |
Methods
getInfo Method
Declaration
getInfo(): DxDesigner.Analytics.Utils.ISerializationInfoArray
Returns
Type | Description |
---|---|
DxDesigner.Analytics.Utils.ISerializationInfoArray |
|