Creates a button widget.

Buttons are coded with standard HTML anchor and input elements, then enhanced by jQuery Mobile to make them more attractive and useable on a mobile device.



Button label. Possible to enter static text and translate to different languages if needed. Use the translate button to translate to desired language. The label can also be binded to an public attribute from the application class.


Binds value for attributes to the object. All valid attributes can be binded.

Format from Application Class:

id="demo" width="100px"


Binds value for styles to the object. All valid styles can be binded.

Format from Application Class:

width: 100px; length: 200px


If the binded value for this field contains a value, the object will not be rendered from the server to the client. The disable function will also disable all child objects.

Event ID

The Event ID is passed to the method OnSubmit in the Application Class to be able to handle different methods depending on the Event ID.

Example in the Application Class

method /neptune/if_nad_server~handle_on_submit.

case event_id.


call method save_replenish( ).


call method search_order( ).

when 'GET_ORDERS'.

call method get_orders( ).

when 'SAVE_PRICE'.

call method save_price( ).

when 'SAVE_USER'.

call method save_user( ).



Event Value

A value passed to OnSubmit method in the application class. Must be binded to a public field from the application class

External Reference