All pages
Powered by GitBook
1 of 1

Loading...

UIPanelCreateOrUpdate


The parameters for creating a panel by using UiController.createOrUpdatePanel.

See

UIPanel for more information about panels.

Properties

id

id: string

The ID of the panel obtained from .

Remarks

Custom IDs are not supported.


title?

optional title: string

The title to display in the panel header.


onClickClose()?

optional onClickClose: (args: { id: string; }) => void

A function to call when panel's close button is clicked.

Parameters

Parameter
Type
Description

Returns

void


type?

optional type: "Panel"


body?

optional body: []

The elements to add to the panel body.


footer?

optional footer: []

The elements to add to the panel footer.


onCreate()?

optional onCreate: (args: { id: string; }) => void

A function to call when the element is created.

Parameters

Parameter
Type
Description

Returns

void


onDestroy()?

optional onDestroy: (args: { id: string; }) => void

A function to call when the element is destroyed.

Parameters

Parameter
Type
Description

Returns

void

args

{ id: string; }

The arguments passed to the function.

args.id

string

The id of the panel.

args

{ id: string; }

The arguments passed to the function.

args.id

string

The id of the element.

args

{ id: string; }

The arguments passed to the function.

args.id

string

The id of the element.

UiController.createPanelId
UIPanelElementCreate
UIPanelElementCreate