Methods

This section describes members used to manipulate data.

beginUpdate()

Prevents the widget from refreshing until the endUpdate() method is called.

The beginUpdate() and endUpdate() methods prevent the widget from excessive updates when you are changing multiple widget settings at once. After the beginUpdate() method is called, the widget does not update its UI until the endUpdate() method is called.

The defaultOptions method is a static method supported by the widget class. The following code demonstrates how to specify default options for all buttons in the application executed on the iOS platform.

See Also

focus()

Sets focus to the input element representing the widget.

NOTE

In the mobile Safari browser, it is impossible to set focus programmatically. You can find more information about this here. You can, however, accomplish this task using PhoneGap when building a native package. Set the KeyboardDisplayRequiresUserAction preference to false in the config.xml file with Cordova settings.