Skip to main content
Version: v3.x

GROUP

Start from API_LEVEL 2.0 . Please refer to API_LEVEL.

GROUP group component is used to group a series of components together for unified widget of show/hide, registering events, etc.

The returned group instance has the method createWidget, which is used to Create UI widget belonging to the group group, and the sub-components need to use relative positions for layout.

caution

The group instance of createWidget cannot create child GROUP components, i.e. GROUP components cannot be nested.

Create UI widget

import { createWidget, widget } from '@zos/ui'

const group = createWidget(widget.GROUP, Param)

// Creating UI sub-widgets
group.createWidget(xxx, xxx)

Type

Param: object

PropertiesDescriptionRequiredType
xThe x-coordinate of component.YESnumber
yThe y-coordinate of component.YESnumber
wThe width of component.YESnumber
hThe height of the component.YESnumber