blackberry-webworks/BB10-WebWorks-Framework — Issue #47: As a WebWorks developer, I can open a native-looking dialog to solicit feedback from the user
Author: kwallis
Created: 2012-02-29 21:48:17+00:00
State: open
Labels: Feature

This API allows a developer to open up a native-looking dialog with either standard buttons or custom buttons. This will be used when feedback from the user is required.

**Acceptance Criteria**

1. This api should be in the blackberry.ui.dialog namespace, and the signatures should be compatible with the existing WebWorks API.
2. There should be a method standardAskAsync() that will create an asynchronous standard dialog to ask the user a question.
* The 0-based index of the selected option will be returned to the optional callback parameter
* This dialog should not block execution of the WebWorks application.
* The buttons to show will be provided by a parameter (an array of integers).
* The developer can control the title, size, and position of the dialog with an optional parameter.
3. There should be a method customeAskAsync() that will create an asynchronous custom dialog to ask the user a question.
* The 0-based index of the selected option will be returned to the optional callback parameter
* This dialog should not block execution of the WebWorks application.
* The buttons to show will be provided by a parameter (an array of strings)
* The developer can control the title, size, and position of the dialog with an optional parameter.