toCode implemented
This commit is contained in:
1 parent
33076a3f32
commit
2eb284c8c7
2 files changed
+54
-1
No files matched your search
@@ -5,6 +5,7 @@ function newPicker () {
|
||||
let thisObject = {
|
||||
container: undefined,
|
||||
selectedItem: 0,
|
||||
getValue: getValue,
|
||||
onParentChanged: onParentChanged,
|
||||
getSelected: getSelected,
|
||||
physics: physics,
|
||||
@@ -54,6 +55,10 @@ function newPicker () {
|
||||
onMouseWheelEventSubscriptionId = thisObject.container.eventHandler.listenToEvent('onMouseWheel', onMouseWheel)
|
||||
}
|
||||
|
||||
function getValue () {
|
||||
return optionsList[selected]
|
||||
}
|
||||
|
||||
function onParentChanged (event) {
|
||||
if (event.parent !== undefined) {
|
||||
parent = event.parent
|
||||
|
||||
Reference in new issue
Block a user