Skip to main content

Card Class

A card(s) displayed within the CardItem.

#Declaration

TypeScript
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:

#constructor(dataItemProvider)

Initializes a new instance of the Card class with specified settings.

#Declaration

TypeScript
constructor(
    dataItemProvider: DevExpress.Dashboard.Model.DataDashboardItem,
    modelJson?: any,
    serializer?: DevExpress.Analytics.Utils.ModelSerializer
)

#Parameters

Name Type Description
dataItemProvider DataDashboardItem
modelJson any

A JSON object used for dashboard deserialization. Do not pass this parameter directly.

serializer ModelSerializer

An object used for dashboard deserialization. Do not pass this parameter directly.

#Properties

#cardDeltaOptions Property

#Declaration

TypeScript
cardDeltaOptions: DevExpress.Dashboard.Model.CardDeltaOptions

#Property Value

Type
CardDeltaOptions

#layoutTemplate Property

#Declaration

TypeScript
layoutTemplate: ko.Observable<DevExpress.Dashboard.Model.CardLayoutTemplate>

#Property Value

Type
Observable<CardLayoutTemplate>

#showSparkline Property

#Declaration

TypeScript
showSparkline: ko.Observable<boolean>

#Property Value

Type
Observable<boolean>

#sparklineOptions Property

#Declaration

TypeScript
sparklineOptions: DevExpress.Dashboard.Model.SparklineOptions

#Property Value

Type
SparklineOptions

#type Property

#Declaration

TypeScript
type: ko.Observable<string>

#Property Value

Type
Observable<string>