Customize Display Options
- Last UpdatedJan 20, 2025
- 1 minute read
The Options section describes how to configure the Options/Settings menu. Language settings, admin mode etc are typically inside this menu.
Since this is independent of the asset, this configuration is inside the apm_data.xml.
Options menu
The menu is divided into different lines. Each line can be a setting with its corresponding buttons. The above script creates a single setting called Language and with two radio buttons English and Hindi. All the languages set in the list must have been created in the localization file of the project.

Code example
The following snippet explains how to configure the Options menu.
<define name="options" type="config" >
<item name="numberOfLines" value="1" />
<struct name="line_0">
<item name="displayName" value=”Language” />
<item name="numberOfButtons" value="2" />
<struct name="button_0">
<item name="displayName" value="English" />
<item name="mode" value="radio" />
<item name="buttonGroup" value="langGroupRadio"/>
<item name="state" value="enabled" />
<item name="langCode" value="en" />
</struct>
<struct name="button_0">
<item name="displayName" value="Hindi" />
<item name="mode" value="radio" />
<item name="buttonGroup" value="langGroupRadio"/>
<item name="state" value="enabled" />
<item name="langCode" value="hi" />
</struct>
</struct>
</define>
Parameters
A description of parameters.
|
Parameter |
Description |
|
numberOfLines |
Number of settings entries in the menu. |
|
Line_0::displayName |
Display name of the setting. |
|
Line_0::numberOfButtons |
Number of buttons in the setting. |
|
Button0::displayName |
The name that will be displayed on the button. |
|
Button0::state |
It denotes whether the button is enabled or disabled. |