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
constructor
Initializes a new instance of the CardLayoutTemplateDataElement
class.
Declaration
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
dimensionIndex Property
Declaration
dimensionIndex: ko.Observable<number>
Property Value
Type |
---|
Observable<number> |
valueType Property
Declaration
valueType: ko.Observable<DevExpress.Dashboard.Model.CardRowDataElementType>
Property Value
Type |
---|
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. |