toCode implemented

This commit is contained in:
Luis Fernando Molina committed 2020-04-29 09:53:45 +02:00
1 parent 33076a3f32
commit 2eb284c8c7
2 files changed
+54 -1

No files matched your search

+5
View File
@@ -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