Skip to main content

Root

The root (top-level) of a XUI configuration is a dictionary.

KeyTypeDescriptionCondition
titlestringNavigation bar titleOptional, localizable
headerstringMain headerOptional, localizable
subheaderstringSub headerOptional, localizable
defaultsstringPreferences domain identifier (global settings file name)
itemsarray of dictionariesComponent list
themedictionaryTheme settings for the pageOptional
stringsTablestringLocalization table name, default LocalizableOptional

defaults is the preferences domain identifier that specifies where settings are stored. For example, if defaults is com.yourcompany.A-Script-Bundle, the XUI settings will be saved to uicfg/com.yourcompany.A-Script-Bundle.plist. Individual components can also override defaults.

items is the array of component dictionaries to display in order. See General Properties for the definition of a component dictionary.

stringsTable is used only when you enable localization; properties marked as localizable will be resolved through the iOS-style strings table.

return {
title = "A Script Bundle";
header = "Configuration Demo";
subheader = "An elegant configuration UI provided by XXTouch";
defaults = "com.yourcompany.A-Script-Bundle"; -- Where settings are stored
theme = {
style = "Grouped"; -- Use "Plain" for plain list style
};
items = {
{

}; -- Component 1
{

}; -- Component 2
{

}; -- Component 3
};
};