New to Kendo UI for AngularStart a free 30-day trial

Group

Represents a group of visual elements that can be managed and manipulated as a single unit. Extends Element and incorporates AutoSizeableMixin functionality for automatic sizing.

NameTypeDefaultDescription

children

any[]

Array of child visual elements contained in this group.

drawingElement

any

The underlying drawing element that handles the actual rendering.

id

string

The unique identifier of the element.

options

any

Configuration options for the element.

Constructors

Group

(options?: any)

Creates a new Group instance.

Parameters

options?

any

Configuration options for the group

Methods

append

Appends a visual element to this group.

Parameters

visual

any

The visual element to append to the group

clear

Removes all child visual elements from this group.

drawingContainer

Gets the drawing container for this element.

Returns

any

The drawing element container

position

Gets or sets the position of the element.

Parameters

x

any

The x coordinate or Point object, or undefined to get current position

y?

any

The y coordinate when x is a number

Returns

Point

The current position as a Point when called as getter

redraw

Redraws the group with updated options.

Parameters

options

any

New options to apply to the group

remove

Removes a visual element from this group.

Parameters

visual

any

The visual element to remove from the group

rotate

Gets or sets the rotation of the element.

Parameters

angle

any

The rotation angle in radians, or undefined to get current rotation

center

any

The center point for rotation

Returns

Rotation

The current rotation when called as getter

toBack

Moves the specified visual elements to the back of the display order.

Parameters

visuals

any

Array of visual elements to move to back

toFront

Moves the specified visual elements to the front of the display order.

Parameters

visuals

any

Array of visual elements to move to front

toIndex

Moves the specified visual elements to specific indices in the display order.

Parameters

visuals

any

Array of visual elements to reorder

indices

any

Target indices for the visual elements

visible

Gets or sets the visibility of the element.

Parameters

value

any

The visibility value to set, or undefined to get current visibility

Returns

any

The current visibility state when called as getter

In this article
ConstructorsGroupMethods
Not finding the help you need?
Contact Support