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
dimensions
clipProperties:
Name Type Description x
Number Start x position of the container. Used, if panel is horizontal
y
Number Start x position of the container. Used, if panel is vertical
len
Number Scroll distance of the container. On scroll down/right, x or y position will be subtracted by
len
multiplied by scrollbar value