Skip to main content

Option

Displays a submenu entry linking to a list of options for single selection.

KeyTypeDescriptionRequiredDefaultMin Version
optionsarray of dictOptions list*
footerTextstringSmall text shown below the optionsLocalizable""
popoverModebooleanUse popover stylefalse1.2-4

Each option dict has:

KeyTypeDescriptionCondition
titlestringOption titleLocalizable
valueprimitiveSaved value; defaults to title if omittedOptional
iconstringOption icon pathOptional
shortTitlestringText displayed on the parent row right sideOptional, Localizable
Return TypeDescription
primitiveSelected option value

Example

{
default = "Green";
label = "Single selection";
cell = "Option";
key = "list-1";
options = {
{ title = "Red"; shortTitle = "Red"; };
{ title = "Green"; shortTitle = "Green"; };
{ title = "Blue"; shortTitle = "Blue"; };
};
popoverMode = false;
-- footerText = "Select one";
};

XUI-Option-1.png

XUI-Option-2.png