based on that thread (viewtopic.php?p=11441#p11441), I've been testing some mobileUI stuff and have some strange behaviour:
MobileUI.sb Example (from examples folder):
Compiles, but shows no output / UI or Error in SB-Debugger (not in the IDE, nor in the browser). Just the blueish background-window.
Browser Dev Tools states:
Code: Select all
Uncaught (in promise) DOMException: Node.appendChild: The new child is an ancestor of the parent
<anonymous> http://127.0.0.1:9081/spiderbasic/libraries/javascript/onsenui.min.js:1
Yt http://127.0.0.1:9081/spiderbasic/libraries/javascript/onsenui.min.js:11
value http://127.0.0.1:9081/spiderbasic/libraries/javascript/onsenui.min.js:11
value http://127.0.0.1:9081/spiderbasic/libraries/javascript/onsenui.min.js:11
value http://127.0.0.1:9081/spiderbasic/libraries/javascript/onsenui.min.js:11
s http://127.0.0.1:9081/spiderbasic/libraries/javascript/onsenui.min.js:11
value http://127.0.0.1:9081/spiderbasic/libraries/javascript/onsenui.min.js:11
ready http://127.0.0.1:9081/spiderbasic/libraries/javascript/onsenui.min.js:11
value http://127.0.0.1:9081/spiderbasic/libraries/javascript/onsenui.min.js:11
Tt http://127.0.0.1:9081/spiderbasic/libraries/javascript/onsenui.min.js:11
Tt http://127.0.0.1:9081/spiderbasic/libraries/javascript/onsenui.min.js:11
It http://127.0.0.1:9081/spiderbasic/libraries/javascript/onsenui.min.js:11
f http://127.0.0.1:9081/spiderbasic/libraries/javascript/onsenui.min.js:11
p http://127.0.0.1:9081/spiderbasic/libraries/javascript/onsenui.min.js:11
r http://127.0.0.1:9081/spiderbasic/libraries/javascript/onsenui.min.js:11
onsenui.min.js:1:19507
Example from ListMobile() from Help file / documentation
The Example code is this:
Code: Select all
If ContainerMobile(#PB_Any, #PB_Mobile_Page)
ListMobile(0)
AddListMobileItem(0, "Header", #PB_Mobile_Header)
AddListMobileItem(0, "Basic item")
AddListMobileItem(0, "Basic item 2")
; List item with a container With 3 placeholder: left, center, right
If AddListMobileItem(0, "Hello", #PB_Mobile_Container)
TextMobile(#PB_Any, "PopOver", #PB_Mobile_Left)
ButtonMobile(1, "Open PopOver !", #PB_Mobile_Center)
SwitchMobile(2, #PB_Mobile_Right)
CloseMobileContainer() ; Important to close the container once the item have been added
EndIf
AddListMobileItem(0, "Another title", #PB_Mobile_Header)
AddListMobileItem(0, "Chevron", #PB_Mobile_Chevron | #PB_Mobile_Tappable)
; Expandable list item
If AddListMobileItem(0, "Expandable", #PB_Mobile_Expandable)
ButtonMobile(1, "Hidden button !")
CloseMobileContainer() ; Important to close the container once the item have been added
EndIf
CloseMobileContainer()
EndIf
In the IDE:

No messages in Debug-Window or Browsers-Dev Tools.