Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Table of Contents

 

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:

 

Code Block
languagexml
titleView XML
<confirm subject="confirm_subject" body="confirm_body"/>
Code Block
confirm_subject=You sure?
confirm_body=Are you really sure?
Info
titleConfirm dialog

 

Examples

Confirm with submit

Code Block
<submit label="button.save_and_invite" action="submitAndInviteTrainee">
	<confirm subject="confirm_subject.invite_trainee" body="confirm_body.invite_trainee" />
</submit>

 

Confirm with normal button

Code Block
<button label="button.table_mode" action="toggleFatTable">
	<visible function="showDataTable"/>
	<confirm subject="confirm_subject" body="confirm_body"/>
</button>

 

Confirm with view action

Code Block
<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