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:
- 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
#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 |
---|---|---|
data |
Data |
|
model |
any | A JSON object used for dashboard deserialization. Do not pass this parameter directly. |
serializer | Model |
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 |
---|
Card |
#layoutTemplate Property
#Declaration
TypeScript
layoutTemplate: ko.Observable<DevExpress.Dashboard.Model.CardLayoutTemplate>
#Property Value
Type |
---|
Observable<Card |
#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 |
---|
Sparkline |
#type Property
#Declaration
TypeScript
type: ko.Observable<string>
#Property Value
Type |
---|
Observable<string> |