The requested page is not available for the requested platform. You are viewing the content for Default platform.
All docs
V18.2
19.1 (preview)
18.2
18.1
The page you are viewing does not exist in version 18.1. This link will take you to the root page.
17.2
The page you are viewing does not exist in version 17.2. This link will take you to the root page.

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.

Declaration

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

Optional Parameters

Type Name Default Description
any modelJson null

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

DxDesigner.Analytics.Utils.ModelSerializer serializer null

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

Properties

maxWidth Property

Declaration

maxWidth: KnockoutObservable<number>

Property Value

Type Description
KnockoutObservable<number>

minWidth Property

Declaration

minWidth: KnockoutObservable<number>

Property Value

Type Description
KnockoutObservable<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: KnockoutObservableArray<CardRowBase>

Property Value

Type Description
KnockoutObservableArray<CardRowBase>

templateID Property

Declaration

templateID: KnockoutObservable<number>

Property Value

Type Description
KnockoutObservable<number>

Methods

createRow(elementJSON, serializer) Method

Declaration

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

Parameters

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

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

Returns

Type Description
CardRowBase

getInfo Method

For internal use.

Declaration

getInfo(): DxDesigner.Analytics.Utils.ISerializationsInfo

Returns

Type Description
DxDesigner.Analytics.Utils.ISerializationsInfo

 

grabFrom(newLayout) Method

Declaration

grabFrom(newLayout: CardLayout): void

Parameters

Name Type Description
newLayout CardLayout