Root
The root (top-level) of a XUI configuration is a dictionary.
| Key | Type | Description | Condition |
|---|---|---|---|
| title | string | Navigation bar title | Optional, localizable |
| header | string | Main header | Optional, localizable |
| subheader | string | Sub header | Optional, localizable |
| defaults | string | Preferences domain identifier (global settings file name) | – |
| items | array of dictionaries | Component list | – |
| theme | dictionary | Theme settings for the page | Optional |
| stringsTable | string | Localization table name, default Localizable | Optional |
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
};
};