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 UiController.createPanelId.
Remarks
Custom IDs are not supported.
title?
optionaltitle:string
The title to display in the panel header.
onClickClose()?
optionalonClickClose: (args: {id:string; }) =>void
A function to call when panel's close button is clicked.
Parameters
args
{ id: string; }
The arguments passed to the function.
args.id
string
The id of the panel.
Returns
void
type?
optionaltype:"Panel"
body?
optionalbody:UIPanelElementCreate[]
The elements to add to the panel body.
footer?
optionalfooter:UIPanelElementCreate[]
The elements to add to the panel footer.
onCreate()?
optionalonCreate: (args: {id:string; }) =>void
A function to call when the element is created.
Parameters
args
{ id: string; }
The arguments passed to the function.
args.id
string
The id of the element.
Returns
void
onDestroy()?
optionalonDestroy: (args: {id:string; }) =>void
A function to call when the element is destroyed.
Parameters
args
{ id: string; }
The arguments passed to the function.
args.id
string
The id of the element.
Returns
void
Last updated
Was this helpful?