I am trying to start my development in WebOS. I just started with a simple application with a label and a button. Here’s the code snippet:
<div class="palm-body-text">
<div id="main" class="palm-hasheader">
<div class="palm-header">First Scene</div>
<div class="palm-text">Welcome to my World</div>
<div class="myButton" x-mojo-element="Button"></div>
</div>
</div>
In emulator it’s not showing up the button. Also its giving a warning on button line which says
unknown attribute x-mojo-element.
Any suggestion?
You have to setup the button in the scene assistant first. The button is only rendered after you call
this.controller.setupWidgetin the scene assistant’ssetupfunction. Until you do that it’s just adivwithout any special meaning.