CardRow Class

A row in the CardItem's layout.

Declaration

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

CardRowBase
CardRow

constructor

Declaration

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

Parameters

Type Name Description
any modelJson
DxDesigner.Analytics.Utils.ModelSerializer serializer

Properties

elementItemTypes Property

Declaration

static elementItemTypes: {
    "CardRowDataElement": {
        constructor: typeof CardRowDataElement;
    };
    "CardRowIndicatorElement": {
        constructor: typeof CardRowIndicatorElement;
    };
    "CardRowTextElement": {
        constructor: typeof CardRowTextElement;
    };
}

Property Value

Type Description
{constructor: CardRowDataElement}
{constructor: CardRowIndicatorElement}
{constructor: CardRowTextElement}

elements Property

Provides access to a collection of CardRowElement objects that are a card's visual elements.

Declaration

elements: KnockoutObservableArray<CardRowElement>

Property Value

Type Description
KnockoutObservableArray<CardRowElement>

An array of CardRowElement objects that are the card's visual elements.

Methods

createRowElement(elementJSON, serializer) Method

Declaration

createRowElement(elementJSON: any, serializer: DxDesigner.Analytics.Utils.ModelSerializer): CardRowDataElement

Parameters

Type Name Description
any elementJSON
DxDesigner.Analytics.Utils.ModelSerializer serializer

Returns

Type Description
CardRowDataElement

getInfo Method

Declaration

getInfo(): DxDesigner.Analytics.Utils.ISerializationsInfo

Returns

Type Description
DxDesigner.Analytics.Utils.ISerializationsInfo