CardLayout Class

Contains settings related to the layout of cards for the CardItem.

Declaration

export class CardLayout extends SerializableModel

Remarks

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

Inheritance

SerializableModel
CardLayout

constructor

Initializes a new instance of the CardLayout class with specified settings.

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

maxWidth Property

Declaration

maxWidth: ko.Observable<number>

Property Value

Type Description
ko.Observable<number>

minWidth Property

Declaration

minWidth: ko.Observable<number>

Property Value

Type Description
ko.Observable<number>

rowTypes Property

Declaration

static rowTypes: {
    "CardRow": {
        constructor: typeof CardRow;
    };
    "CardSparklineRow": {
        constructor: typeof CardSparklineRow;
    };
}

Property Value

Type Description
{constructor: CardRow}
{constructor: CardSparklineRow}

rows Property

Declaration

rows: ko.ObservableArray<CardRowBase>

Property Value

Type Description
ko.ObservableArray<CardRowBase>

templateID Property

Declaration

templateID: ko.Observable<number>

Property Value

Type Description
ko.Observable<number>

Methods

createRow(elementJSON, serializer) Method

Declaration

createRow(elementJSON: any, serializer: DevExpress.Analytics.Utils.ModelSerializer): CardRowBase

Parameters

Name Type Description
elementJSON any
serializer ModelSerializer

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

Returns

Type Description
CardRowBase

getInfo Method

For internal use.

Declaration

getInfo(): DevExpress.Analytics.Utils.ISerializationInfoArray

Returns

Type Description
ISerializationInfoArray

An array of objects that provide serialization info.

grabFrom(newLayout) Method

Declaration

grabFrom(newLayout: CardLayout): void

Parameters

Name Type Description
newLayout CardLayout