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)

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

Declaration

constructor(
    dataItemProvider: DataDashboardItem,
    modelJson?: any,
    serializer?: 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

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>