new UIScrollPanel(container, panelKey, scrollBarKey, dimensionsKey [, vertical])
Parameters:
| Name | Type | Argument | Default | Description |
|---|---|---|---|---|
container |
PhaserComps.UIComponents.UIComponentPrototype | |||
panelKey |
String | |||
scrollBarKey |
String | |||
dimensionsKey |
String | |||
vertical |
Boolean |
<optional> |
false |
Type Definitions
-
ScrollBoundsObject
-
Object is generated automatically on container's clip update, by the
dimensionsclipProperties:
Name Type Description xNumber Start x position of the container. Used, if panel is horizontal
yNumber Start x position of the container. Used, if panel is vertical
lenNumber Scroll distance of the container. On scroll down/right, x or y position will be subtracted by
lenmultiplied by scrollbar value