new UIScrollBar( [parent] [, key] [, vertical])
Parameters:
| Name | Type | Argument | Default | Description |
|---|---|---|---|---|
parent |
PhaserComps.UIComponents.UIComponentPrototype |
<optional> |
UIComponentPrototype instance to find clip inside |
|
key |
String |
<optional> |
key to find clip inside parent |
|
vertical |
Boolean |
<optional> |
false | scroll bar behave like vertical or horizontal |
Properties:
| Name | Type | Description |
|---|---|---|
value |
Number | current bar value, from min value to max, default is from 0 to 1 |
Fires:
Methods
-
_onZoneDown()
-
Zone around scrollbar thumb click handler
-
onClipAppend()
-
-
onClipProcess()
-
-
<protected> onNextClick()
-
-
<protected> onPrevClick()
-
-
setButtonStep(val)
-
Parameters:
Name Type Description valNumber -
setValueBounds(minValue, maxValue [, valueStep])
-
Setup scroll bar value bounds and value step
Parameters:
Name Type Argument Default Description minValueNumber minimum value
maxValueNumber maximum value
valueStepNumber <optional>
0 value change step
Type Definitions
-
StepConfig
-
Properties:
Name Type Description stepValueNumber max value of this step
configPhaserComps.ComponentClip.StateConfig
Events
-
EVENT_CHANGE
-
Emitted on scroll bar value change.
Parameters:
Name Type Description valueNumber current scrollbar value