CardCustomLayoutTemplate Class

The Custom layout template that allows you to create a card layout manually.

Declaration

export class CardCustomLayoutTemplate extends CardLayoutTemplate

Remarks

Use the Card.layoutTemplate property to specify a card’s layout template. To learn how to manage the layout of cards in the CardItem, refer to the CardLayoutTemplate class description.

The Custom layout template allows you to create a card’s layout manually. You can use the following members:

Inherited Members

Inheritance

CardLayoutTemplate
CardCustomLayoutTemplate

constructor

For internal use.

Declaration

constructor(
    modelJson?: any,
    serializer?: ModelSerializer
)

Parameters

Name Type Description
modelJson any

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

serializer ModelSerializer

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

Properties

layout Property

Declaration

layout: CardLayout

Property Value

Type
CardLayout

type Property

Declaration

type: ko.Observable<string>

Property Value

Type
Observable<string>

Methods

getInfo Method

For internal use.

Declaration

getInfo(): ISerializationInfoArray

Returns

Type Description
ISerializationInfoArray

An array of objects that provide serialization info.

getType Method

Declaration

getType(): string

Returns

Type
string