Back to Devexpress

DashboardLayoutGroup Class

dashboard-js-devexpress-dot-dashboard-dot-model-1865321a.md

latest5.7 KB
Original Source

DashboardLayoutGroup Class

A layout group used to arrange layout items or other groups within a dashboard.

Declaration

ts
export class DashboardLayoutGroup extends DashboardLayoutNode

Remarks

Use the DashboardLayoutGroup.childNodes property to get access to the collection of child layout groups and items that constitute the current layout group. The DashboardLayoutGroup.orientation property specifies the orientation of layout items/groups within the group.

The DashboardLayoutNode.weight property allows you to specify the relative size of the layout group.

Inherited Members

dashboardItem

disposed

itemType

parentNode

weight

item

getInfo

insert(itemToInsert, position)

moveTo(targetItem, position)

remove

Inheritance

SerializableModel TypedSerializableModel DashboardLayoutNode DashboardLayoutGroup DashboardLayoutRootGroup

DashboardLayoutTabPage

DashboardLayoutTabContainer

constructor

Initializes a new instance of the DashboardLayoutGroup class.

Declaration

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

Parameters

NameTypeDescription
modelJsonany

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

childNodes Property

Provides access to the collection of child layout groups and items.

Declaration

ts
childNodes: ko.ObservableArray<DevExpress.Dashboard.Model.DashboardLayoutNode>

Property Value

TypeDescription
ObservableArray<DashboardLayoutNode>

A collection of the DashboardLayoutNode objects.

|

orientation Property

Specifies the value that indicates the orientation of layout items/groups within the group.

Declaration

ts
orientation: ko.Observable<DevExpress.Dashboard.Model.DashboardLayoutGroupOrientation>

Property Value

TypeDescription
Observable<DashboardLayoutGroupOrientation>

The DashboardLayoutGroupOrientation value that indicates the orientation of layout items/groups within the group.

|

Methods

dispose Method

Disposes of all resources associated with this DashboardLayoutGroup.

Declaration

ts
dispose(): void

findLayoutItem(dashboardItem) Method

Declaration

ts
findLayoutItem(
    dashboardItem: DevExpress.Dashboard.Model.DashboardItem
): DevExpress.Dashboard.Model.DashboardLayoutNode

Parameters

NameType
dashboardItemDashboardItem

Returns

Type
DashboardLayoutNode

getItemsRecursive Method

Declaration

ts
getItemsRecursive(): Array<DevExpress.Dashboard.Model.DashboardLayoutNode>

Returns

Type
DashboardLayoutNode[]

getNodesRecursive Method

Declaration

ts
getNodesRecursive(): Array<DevExpress.Dashboard.Model.DashboardLayoutNode>

Returns

Type
DashboardLayoutNode[]