Skip to main content

OrderedOption

Displays a submenu entry linking to a list of options that supports ordered multiple selections.

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

Each option dict has:

KeyTypeDescriptionCondition
titlestringOption titleLocalizable
valueprimitiveSaved value; defaults to title if omittedOptional
iconstringOption icon pathOptional
Return TypeDescription
array of primitiveArray of selected option values

Example

{
default = { "Red"; };
label = "Ordered options";
cell = "OrderedOption";
key = "list-3";
maxCount = 2;
minCount = 1;
options = {
{ title = "Red"; icon = "res/red.png"; };
{ title = "Green"; icon = "res/green.png"; };
{ title = "Blue"; icon = "res/blue.png"; };
};
popoverMode = false;
footerText = "Select at least 1, at most 2";
};

XUI-OrderedOption-1.png

XUI-OrderedOption-2.png

XUI-OrderedOption-Popover.png