Constructor
new BaseContainer(res, isPolar)
Parameters:
| Name | Type | Description |
|---|---|---|
res |
object | 资源对象. |
isPolar |
boolean | 是否采用极坐标定位. |
Properties:
| Name | Type | Description |
|---|---|---|
parentContainer |
object | 组件父容器 |
Methods
(static) Destroy()
Destroy the instance
(static) hide(Is)
hide function.
Parameters:
| Name | Type | Description |
|---|---|---|
Is |
boolean | the container hided immediately |
(static) reset()
remove all event and redo init function
(static) show(Is)
show function.
Parameters:
| Name | Type | Description |
|---|---|---|
Is |
boolean | the container displayed immediately |
Events
beforeHide
Fired before the instance hide
beforeShow
Fired before the instance show
Destroyed
Fired when the instance destroyed
onHide
Fired after the instance hide
onShow
Fired after the instance show
ParentChange
Parent Change Event.