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
Initializes a new instance of the CardRow
class.
Declaration
constructor(
modelJson?: any,
serializer?: DxDesigner.Analytics.Utils.ModelSerializer
)
Parameters
Name | Type | Description |
---|---|---|
modelJson | any | A JSON object used for a dashboard deserialization. Do not pass this parameter directly. |
serializer | DxDesigner.Analytics.Utils.ModelSerializer | An object used for a dashboard deserialization. Do not pass this parameter directly. |
Properties
elementItemTypes Property
Declaration
static elementItemTypes: {
"CardRowDataElement": {
constructor: typeof CardRowDataElement;
};
"CardRowIndicatorElement": {
constructor: typeof CardRowIndicatorElement;
};
"CardRowTextElement": {
constructor: typeof CardRowTextElement;
};
}
Property Value
Name | Type |
---|---|
CardRowDataElement | {constructor: typeof CardRowDataElement} |
CardRowIndicatorElement | {constructor: typeof CardRowIndicatorElement} |
CardRowTextElement | {constructor: typeof CardRowTextElement} |
elements Property
Provides access to a collection of CardRowElement objects that are a card’s visual elements.
Declaration
elements: ko.ObservableArray<CardRowElement>
Property Value
Type | Description |
---|---|
ObservableArray<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
Name | Type |
---|---|
elementJSON | any |
serializer | DxDesigner.Analytics.Utils.ModelSerializer |
Returns
Type |
---|
CardRowDataElement |
getInfo Method
For internal use.
Declaration
getInfo(): DxDesigner.Analytics.Utils.ISerializationInfoArray
Returns
Type | Description |
---|---|
DxDesigner.Analytics.Utils.ISerializationInfoArray |
|