Skip to main content
A newer version of this page is available. .

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:

Inheritance

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