<confirm/>
- Jacques Marais
Owned by Jacques Marais
Â
Description
As of Helium 1.19, all button variants, namely the normal button, submit button, view action, row action and marker actions support confirmation popups. These are useful when to ensure users are sure before performing potentially sensitive or critical operations. Confirm popups are implemented as a dialog box with subject and body text and built-in buttons for "Ok" and "Cancel" options. The subject and body text is represented in the lang file and referenced by the lang key in the view component itself:
Â
View XML
<confirm subject="confirm_subject" body="confirm_body"/>
confirm_subject=You sure? confirm_body=Are you really sure?
Confirm dialog
Â
Examples
Confirm with submit
<submit label="button.save_and_invite" action="submitAndInviteTrainee"> <confirm subject="confirm_subject.invite_trainee" body="confirm_body.invite_trainee" /> </submit>
Â
Confirm with normal button
<button label="button.table_mode" action="toggleFatTable"> <visible function="showDataTable"/> <confirm subject="confirm_subject" body="confirm_body"/> </button>
Â
Confirm with view action
<action label="button.toggle_manage_gyms_view_mode" action="toggleViewMode"> <visible variable="uSystemConfig"> <attribute name="showGymMap"/> </visible> <confirm subject="confirm_subject.view_map" body="confirm_body.view_map" /> </action>
Â
Additional Mentions and References
- Mentioned in the Helium Tutorial, Lesson 2: The Table Widget and Basic Navigation
Â
Â