Skip to main content

CardRowTextElementBase Class

Serves as the base for classes that are card elements displaying text data.

#Declaration

TypeScript
export abstract class CardRowTextElementBase extends CardRowElement

#Remarks

Refer to the CardLayoutTemplate class description to learn how to manage the layout of cards in the CardItem.

#Inherited Members

#constructor

Initializes a new instance of the CardRowTextElementBase class.

#Declaration

TypeScript
constructor(
    modelJson?: any,
    serializer?: DevExpress.Analytics.Utils.ModelSerializer
)

#Parameters

Name Type Description
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

#color Property

#Declaration

TypeScript
color: ko.Observable<number>

#Property Value

Type
Observable<number>

#fontFamily Property

#Declaration

TypeScript
fontFamily: ko.Observable<string>

#Property Value

Type
Observable<string>

#fontSize Property

#Declaration

TypeScript
fontSize: ko.Observable<number>

#Property Value

Type
Observable<number>

#predefinedForeColor Property

#Declaration

TypeScript
predefinedForeColor: ko.Observable<string>

#Property Value

Type
Observable<string>

#Methods

#getInfo Method

For internal use.

#Declaration

TypeScript
getInfo(): DevExpress.Analytics.Utils.ISerializationInfoArray

#Returns

Type Description
ISerializationInfoArray

An array of objects that provide serialization info.