CardRow Class
In This Article
A row in the CardItem‘s layout.
#Declaration
TypeScript
export class CardRow extends CardRowBase
#Remarks
Use the CardLayout.rows property to access rows that constitute a card’s layout. Refer to the CardLayoutTemplate class description to learn how to manage the layout of cards in the CardItem.
#Inheritance
#constructor
Initializes a new instance of the CardRow
class.
#Declaration
TypeScript
constructor(
modelJson?: any,
serializer?: DevExpress.Analytics.Utils.ModelSerializer
)
#Parameters
Name | Type | Description |
---|---|---|
model |
any | A JSON object used for dashboard deserialization. Do not pass this parameter directly. |
serializer | Model |
An object used for dashboard deserialization. Do not pass this parameter directly. |
#Properties
#elementItemTypes Property
#Declaration
TypeScript
static elementItemTypes: {
CardRowDataElement: {
constructor: typeof DevExpress.Dashboard.Model.CardRowDataElement;
};
CardRowIndicatorElement: {
constructor: typeof DevExpress.Dashboard.Model.CardRowIndicatorElement;
};
CardRowTextElement: {
constructor: typeof DevExpress.Dashboard.Model.CardRowTextElement;
};
}
#Property Value
Name | Type |
---|---|
Card |
{constructor: typeof Card |
Card |
{constructor: typeof Card |
Card |
{constructor: typeof Card |
#elements Property
Provides access to a collection of CardRowElement objects that are a card’s visual elements.
#Declaration
TypeScript
elements: ko.ObservableArray<DevExpress.Dashboard.Model.CardRowElement>
#Property Value
Type | Description |
---|---|
Observable |
An array of Card |
#Methods
#createRowElement(elementJSON, serializer) Method
#Declaration
TypeScript
createRowElement(
elementJSON: any,
serializer: DevExpress.Analytics.Utils.ModelSerializer
): DevExpress.Dashboard.Model.CardRowDataElement
#Parameters
Name | Type |
---|---|
element |
any |
serializer | Model |
#Returns
Type |
---|
Card |
#getInfo Method
For internal use.
#Declaration
TypeScript
getInfo(): DevExpress.Analytics.Utils.ISerializationInfoArray
#Returns
Type | Description |
---|---|
ISerialization |
An array of objects that provide serialization info. |