Widgets

From WebOS101

Jump to: navigation, search

The Mojo SDK includes a number of pre-made widgets to help ease development of applications and create a consistent user interface. The following widgets are included in the SDK:

Widget Description[1]
Button Push button with optional activity indicator and callback.
CheckBox Simple bi-state check box.
DatePicker Provides UI for selecting a date.
Dialogs General Dialog function with specialty functions for alerts and errors.
Drawer A container that toggles between hidden and shown views.
FilePicker Provides UI for selecting a file from the available files on the device.
FilterField A text field design for acting as a filter on application-specific data.
FilterList A filter field integrated with a list.
ImageView Views an image full-screen with support for zooming and panning, with an option to scroll to other images.
IntegerPicker Provides UI for selecting a number from a range.
List The main list widget for editable, static, and dynamic lists with many options.
ListSelector Provides a multiple-choice pop-up selector.
Menu Functions for setting up and responding to the App, Command, and View menus.
PasswordField A special TextField for password entry.
ProgressBar Progress indicator using a bar graphic background.
ProgressPill Progress indicator using a View menu style background.
ProgressSlider Progress indicator integrated with a Slider widget; useful for streaming data indicators.
RadioButton Multiple choice selector in the form of a button array.
RichTextEdit A TextField with support for rich text editing.
Scroller Apply horizontal and/or vertical scrolling to a DIV's contents with snap options.
Slider Selector for a numerical range of values in the form of a horizontal slider.
Spinner Activity indicator that is manually started and stopped.
TextField The main text entry and edit widget with many options. You can combine this into forms.
TimePicker Provides UI for selecting a time setting.
ToggleButton Provides UI for switching between two states when tapped.
WebView Embeddable Web view for use within a scene.

Useful Links

Notes

  1. Copied from http://developer.palm.com/index.php?option=com_content&view=article&id=1566 Copyright Palm, Inc.
Retrieved from "http://webos101.com/Widgets"
Personal tools