The requested page is not available for the requested platform. You are viewing the content for Default platform.

CardLayoutTemplateDataElement Class

A visual element within a card layout that displays bound data in text form.

Declaration

export class CardLayoutTemplateDataElement extends CardLayoutTemplateElementBase

Remarks

The CardLayoutTemplateDataElement object provides access to settings for a card's visual elements for predefined layout templates (such as CardStretchedLayoutTemplate and CardCompactLayoutTemplate). For instance, you can use the following properties to access element settings for the Stretched layout template:

To learn how to manage the layout of cards in the CardItem, refer to the CardLayoutTemplate class description.

Inheritance

SerializableModel
CardLayoutTemplateElementBase
CardLayoutTemplateDataElement

constructor

Initializes a new instance of the CardLayoutTemplateDataElement class.

Declaration

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

Optional Parameters

Name Type Default Description
modelJson any null

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

serializer ModelSerializer null

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

Properties

dimensionIndex Property

Declaration

dimensionIndex: ko.Observable<number>

Property Value

Type Description
ko.Observable<number>

valueType Property

Declaration

valueType: ko.Observable<CardRowDataElementType>

Property Value

Type Description
ko.Observable<CardRowDataElementType>

Methods

getInfo Method

For internal use.

Declaration

getInfo(): DevExpress.Analytics.Utils.ISerializationInfoArray

Returns

Type Description
ISerializationInfoArray

An array of objects that provide serialization info.