Skip to main content
A newer version of this page is available. .

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.

Inherited Members

Inheritance

CardLayoutTemplateElementBase
CardLayoutTemplateDataElement

constructor

Initializes a new instance of the CardLayoutTemplateDataElement class.

Declaration

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

Parameters

Name Type Description
modelJson any

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

serializer DxDesigner.Analytics.Utils.ModelSerializer

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

Properties

dimensionIndex Property

Declaration

dimensionIndex: ko.Observable<number>

Property Value

Type
Observable<number>

valueType Property

Declaration

valueType: ko.Observable<CardRowDataElementType>

Property Value

Type
Observable<CardRowDataElementType>

Methods

getInfo Method

For internal use.

Declaration

getInfo(): DxDesigner.Analytics.Utils.ISerializationInfoArray

Returns

Type Description
DxDesigner.Analytics.Utils.ISerializationInfoArray